]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/Geocode.php
fix style
[nominatim.git] / lib / Geocode.php
index c527dc14915719b38740b2cfa24333c4b8d1add2..3726f3379600675a00196020f7d18d7e37741c3f 100644 (file)
@@ -695,9 +695,10 @@ class Geocode
                                 } elseif (isset($aSearchTerm['lat']) && $aSearchTerm['lat'] !== '' && $aSearchTerm['lat'] !== null) {
                                     if ($aSearch['oNear'] === false) {
                                         $aSearch['oNear'] = new NearPoint(
-                                                 $aSearchTerm['lat'],
-                                                 $aSearchTerm['lon'],
-                                                 $aSearchTerm['radius']);
+                                            $aSearchTerm['lat'],
+                                            $aSearchTerm['lon'],
+                                            $aSearchTerm['radius']
+                                        );
                                         if ($aSearch['iSearchRank'] < $this->iMaxRank) $aNewWordsetSearches[] = $aSearch;
                                     }
                                 } elseif ($sPhraseType == 'postalcode') {
@@ -1574,7 +1575,7 @@ class Geocode
 
                                         $sOrderBySQL = '';
                                         if ($oNearPoint) {
-                                           $sOrderBySQL = $oNearPoint->distanceSQL('l.centroid');
+                                            $sOrderBySQL = $oNearPoint->distanceSQL('l.centroid');
                                         } elseif ($sPlaceIDs) {
                                             $sOrderBySQL = "ST_Distance(l.centroid, f.geometry)";
                                         } elseif ($sPlaceGeom) {