Closed aik099 closed 9 years ago
We need to validate that for cases when:
we need to ensure that a space is present after comma.
Valid:
$something = array(1 => 'aa', 'bb' => 'cc');
Invalid:
$something = array(1 => 'aa','bb' => 'cc');
The ArrayDeclaration sniff from Squiz coding standard has some good code for checking what we need, but it only applies to inline arrays.
ArrayDeclaration
Closing as special case of #54, which obviously more general case for that problem.
We need to validate that for cases when:
we need to ensure that a space is present after comma.
Valid:
Invalid:
The
ArrayDeclaration
sniff from Squiz coding standard has some good code for checking what we need, but it only applies to inline arrays.