From: Sarah Hoffmann Date: Thu, 1 May 2014 07:25:06 +0000 (+0200) Subject: fix formatting X-Git-Tag: v2.3.0~41 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/9ac57c92ee0120e0ea19277641e8b7a825ebcf51 fix formatting --- diff --git a/lib/Geocode.php b/lib/Geocode.php index 847439c7..7b20838d 100644 --- a/lib/Geocode.php +++ b/lib/Geocode.php @@ -890,9 +890,9 @@ 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) @@ -911,7 +911,7 @@ $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')