Merge pull request #1038 from mtmail/phpcs-array-key-alignment

add PHPCS Squiz.Arrays.ArrayDeclaration.KeyNotAligned rule
This commit is contained in:
Sarah Hoffmann
2018-05-08 09:04:03 +02:00
committed by GitHub
4 changed files with 35 additions and 34 deletions

View File

@@ -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']);

View File

@@ -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
************************************************************** --> ************************************************************** -->