]> git.openstreetmap.org Git - nominatim.git/blobdiff - lib/PlaceLookup.php
fix array-related errors according to PSR2 coding style guide
[nominatim.git] / lib / PlaceLookup.php
index f6ea67b705211b7d16c460ea82cc8b2486dc0da2..479212fae1caaee2d20d783dd3f49f47c7fb312d 100644 (file)
@@ -221,7 +221,7 @@ class PlaceLookup
                 $aTypeLabel = $aClassType['boundary:administrative:'.((int)($aLine['rank_address']/2))];
                 $bFallback = true;
             } else {
-                $aTypeLabel = array('simplelabel'=>'address'.$aLine['rank_address']);
+                $aTypeLabel = array('simplelabel' => 'address'.$aLine['rank_address']);
                 $bFallback = true;
             }
             if ($aTypeLabel && ((isset($aLine['localname']) && $aLine['localname']) || (isset($aLine['housenumber']) && $aLine['housenumber']))) {
@@ -297,11 +297,11 @@ class PlaceLookup
                 }
 
                 $aOutlineResult['aBoundingBox'] = array(
-                                                  (string)$aPointPolygon['minlat'],
-                                                  (string)$aPointPolygon['maxlat'],
-                                                  (string)$aPointPolygon['minlon'],
-                                                  (string)$aPointPolygon['maxlon']
-                                                 );
+                                                   (string)$aPointPolygon['minlat'],
+                                                   (string)$aPointPolygon['maxlat'],
+                                                   (string)$aPointPolygon['minlon'],
+                                                   (string)$aPointPolygon['maxlon']
+                                                  );
             }
         } // CONST_Search_AreaPolygons
 
@@ -320,11 +320,11 @@ class PlaceLookup
             $aBounds['maxlon'] = $fLon + $fRadius;
 
             $aOutlineResult['aBoundingBox'] = array(
-                                              (string)$aBounds['minlat'],
-                                              (string)$aBounds['maxlat'],
-                                              (string)$aBounds['minlon'],
-                                              (string)$aBounds['maxlon']
-                                             );
+                                               (string)$aBounds['minlat'],
+                                               (string)$aBounds['maxlat'],
+                                               (string)$aBounds['minlon'],
+                                               (string)$aBounds['maxlon']
+                                              );
         }
         return $aOutlineResult;
     }