Closed nkovacs closed 10 years ago
We may have long array syntax at some places. For example: YiiRequirementChecker
needs it.
Whould this PR create a problem for such code?
You could add codingStandardsIgnore tags to code that needs it. The rest should be fixed.
I've added an exclude pattern to ignore the entire requirements directory, and removed the two separate ones. Here are all the errors and warnings in the framework directory: https://gist.github.com/nkovacs/e70f105e68e79bf0260d
Well?
Merged. Thanks!
Since Yii2 uses the short array syntax, I wrote this sniff to catch accidental use of array().
I checked the framework source, and it found a couple files, mostly translation files and requirements.php (I guess that one has to stay so that it can run on older php, so it can be added to exclusions).