mirror of
https://github.com/dannyvankooten/AltoRouter.git
synced 2025-08-02 14:37:43 +02:00
add php-cs to match with PSR2 requirements
This commit is contained in:
@@ -24,7 +24,8 @@
|
|||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "5.7.*",
|
"phpunit/phpunit": "5.7.*",
|
||||||
"codeclimate/php-test-reporter": "dev-master"
|
"codeclimate/php-test-reporter": "dev-master",
|
||||||
|
"squizlabs/php_codesniffer": "3.4.2"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": ["AltoRouter.php"]
|
"classmap": ["AltoRouter.php"]
|
||||||
|
10
phpcs.xml
Normal file
10
phpcs.xml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<ruleset name="rules">
|
||||||
|
<description>rules</description>
|
||||||
|
<rule ref="PSR2"/>
|
||||||
|
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
|
||||||
|
<file>tests</file>
|
||||||
|
<file>AltoRouter.php</file>
|
||||||
|
<file>examples/</file>
|
||||||
|
<arg name="colors"/>
|
||||||
|
</ruleset>
|
Reference in New Issue
Block a user