Skip to content

Commit 444b087

Browse files
nkovacssamdark
authored andcommitted
replace custom sniff with Generic.Arrays.DisallowLongArraySyntax (#21)
* replace custom sniff with Generic.Arrays.DisallowLongArraySyntax * require php_codesniffer >=2.3.1 for Generic.Arrays.DisallowLongArraySyntax
1 parent 1cc5e8d commit 444b087

File tree

3 files changed

+2
-64
lines changed

3 files changed

+2
-64
lines changed

Yii2/Sniffs/PHP/DisallowLongArraySyntaxSniff.php

Lines changed: 0 additions & 62 deletions
This file was deleted.

Yii2/ruleset.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<!-- TODO: -->
2929

3030
<!-- ... other Yii2 specific rules. -->
31-
<rule ref="Yii2.PHP.DisallowLongArraySyntax"/>
31+
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
3232

3333
<exclude-pattern>*/i18n/data/*</exclude-pattern>
3434
<exclude-pattern>*/views/errorHandler/*</exclude-pattern>

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
},
5050
"require": {
5151
"php": ">=5.4.0",
52-
"squizlabs/php_codesniffer": "*"
52+
"squizlabs/php_codesniffer": ">=2.3.1"
5353
}
5454
}

0 commit comments

Comments
 (0)