mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-10 03:54:06 +00:00
add PHPCS Squiz.Arrays.ArrayDeclaration.KeyNotAligned rule
This commit is contained in:
@@ -35,7 +35,7 @@ $aPlaceDetails['isarea'] = ($aPointDetails['isarea'] == 't');
|
|||||||
$aPlaceDetails['centroid'] = array(
|
$aPlaceDetails['centroid'] = array(
|
||||||
'type' => 'Point',
|
'type' => 'Point',
|
||||||
'coordinates' => array( (float) $aPointDetails['lon'], (float) $aPointDetails['lat'] )
|
'coordinates' => array( (float) $aPointDetails['lon'], (float) $aPointDetails['lat'] )
|
||||||
);
|
);
|
||||||
|
|
||||||
$aPlaceDetails['geometry'] = json_decode($aPointDetails['asgeojson']);
|
$aPlaceDetails['geometry'] = json_decode($aPointDetails['asgeojson']);
|
||||||
|
|
||||||
|
|||||||
@@ -93,6 +93,8 @@
|
|||||||
INDENTATION, SPACING
|
INDENTATION, SPACING
|
||||||
************************************************************** -->
|
************************************************************** -->
|
||||||
|
|
||||||
|
<rule ref="Squiz.Arrays.ArrayDeclaration.KeyNotAligned" />
|
||||||
|
|
||||||
<!-- Aligned looks nicer, but causes too many warnings currently -->
|
<!-- Aligned looks nicer, but causes too many warnings currently -->
|
||||||
<rule ref="Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned">
|
<rule ref="Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned">
|
||||||
<severity>0</severity>
|
<severity>0</severity>
|
||||||
@@ -103,7 +105,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- **************************************************************
|
<!-- **************************************************************
|
||||||
VARIABLES
|
VARIABLES
|
||||||
************************************************************** -->
|
************************************************************** -->
|
||||||
|
|||||||
Reference in New Issue
Block a user