add PHPCS Squiz.Arrays.ArrayDeclaration.KeyNotAligned rule

This commit is contained in:
Marc Tobias Metten
2018-05-08 00:37:41 +02:00
parent c555b60b36
commit 8841a328c8
4 changed files with 35 additions and 34 deletions

View File

@@ -35,7 +35,7 @@ $aPlaceDetails['isarea'] = ($aPointDetails['isarea'] == 't');
$aPlaceDetails['centroid'] = array(
'type' => 'Point',
'coordinates' => array( (float) $aPointDetails['lon'], (float) $aPointDetails['lat'] )
);
);
$aPlaceDetails['geometry'] = json_decode($aPointDetails['asgeojson']);

View File

@@ -93,6 +93,8 @@
INDENTATION, SPACING
************************************************************** -->
<rule ref="Squiz.Arrays.ArrayDeclaration.KeyNotAligned" />
<!-- Aligned looks nicer, but causes too many warnings currently -->
<rule ref="Squiz.Arrays.ArrayDeclaration.DoubleArrowNotAligned">
<severity>0</severity>
@@ -103,7 +105,6 @@
<!-- **************************************************************
VARIABLES
************************************************************** -->