]> git.openstreetmap.org Git - nominatim.git/blobdiff - website/lookup.php
add PHPCS Squiz.Arrays.ArrayDeclaration.KeyNotAligned rule
[nominatim.git] / website / lookup.php
index 578d4c37306d0ecebb545ab3518ac8e8d5017212..71c93715f9e47621304bbcbdc3f88f542ff70e9e 100755 (executable)
@@ -29,7 +29,7 @@ $oPlaceLookup->loadParamArray($oParams);
 $aOsmIds = explode(',', $oParams->getString('osm_ids', ''));
 
 if (count($aOsmIds) > CONST_Places_Max_ID_count) {
-    userError('Bulk User: Only ' . CONST_Places_Max_ID_count . " ids are allowed in one request.");
+    userError('Bulk User: Only ' . CONST_Places_Max_ID_count . ' ids are allowed in one request.');
 }
 
 foreach ($aOsmIds as $sItem) {
@@ -63,7 +63,7 @@ $sQuery = join(',', $aCleanedQueryParts);
 // we initialize these to avoid warnings in our logfile
 $sViewBox = '';
 $bShowPolygons = '';
-$aExcludePlaceIDs = [];
+$aExcludePlaceIDs = array();
 $sMoreURL = '';
 
 include(CONST_BasePath.'/lib/template/search-'.$sOutputFormat.'.php');