]> git.openstreetmap.org Git - nominatim.git/commitdiff
fix formatting
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 1 May 2014 07:25:06 +0000 (09:25 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Thu, 1 May 2014 07:25:06 +0000 (09:25 +0200)
lib/Geocode.php

index 847439c76e5d3712ed3d4068b78ca2d3c319c20d..7b20838d128239a0a130da1bc8f8b2b5d82e95ad 100644 (file)
                                                                                                if ($aSearch['sHouseNumber'] === '')
                                                                                                {
                                                                                                        $aSearch['sHouseNumber'] = $sToken;
-                                                    // sanity check: if the housenumber is not mainly made
-                                                    // up of numbers, add a penalty
-                                                    if (preg_match_all("/[^0-9]/", $sToken, $aMatches) > 2) $aSearch['iSearchRank']++;
+                                                                                                       // sanity check: if the housenumber is not mainly made
+                                                                                                       // up of numbers, add a penalty
+                                                                                                       if (preg_match_all("/[^0-9]/", $sToken, $aMatches) > 2) $aSearch['iSearchRank']++;
                                                                                                        if ($aSearch['iSearchRank'] < $this->iMaxRank) $aNewWordsetSearches[] = $aSearch;
                                                                                                        /*
                                                                                                        // Fall back to not searching for this item (better than nothing)
                                                                                                        $aSearch['sType'] = $aSearchTerm['type'];
                                                                                                        if (sizeof($aSearch['aName'])) $aSearch['sOperator'] = 'name';
                                                                                                        else $aSearch['sOperator'] = 'near'; // near = in for the moment
-                                                    if (strlen($aSearchTerm['operator']) == 0) $aSearch['iSearchRank'] += 1;
+                                                                                                       if (strlen($aSearchTerm['operator']) == 0) $aSearch['iSearchRank'] += 1;
 
                                                                                                        // Do we have a shortcut id?
                                                                                                        if ($aSearch['sOperator'] == 'name')