squizlabs/PHP_CodeSniffer — pull request #34 by illusori (2012-06-03 22:04:05+00:00)
Title: Add support for shorthand array syntax to ArrayBracketSpacingSniff.

Adds support and unit tests for PHP 5.4 shorthand array syntax to ArrayBracketSpacingSniff.

This version just skips sniffing if it believes that the syntax is a shorthand array, rather than applying a different set of rules, but it would be easy to adapt the code to apply a new set of rules instead.

Fixes http://pear.php.net/bugs/bug.php?id=19416