Skip to content

Commit a69a5c4

Browse files
authored
fix CS (#509)
1 parent f847241 commit a69a5c4

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.iml
33
.hhconfig
44
.phpunit.result.cache
5+
.phpcs.cache
56
vendor
67
composer.phar
78
composer.lock

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
"@cs-check",
5757
"@stan"
5858
],
59-
"cs-check": "phpcs --colors --parallel=16 -p",
60-
"cs-fix": "phpcbf --colors --parallel=16 -p",
59+
"cs-check": "phpcs",
60+
"cs-fix": "phpcbf",
6161
"phpstan": "tools/phpstan analyse",
6262
"stan": "@phpstan",
6363
"stan-baseline": "tools/phpstan --generate-baseline",

phpcs.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<?xml version="1.0"?>
22
<ruleset name="PHP_CodeSniffer">
33
<rule ref="CakePHP" />
4+
<arg value="nps"/>
5+
<arg name="colors"/>
6+
<arg name="parallel" value="4"/>
7+
<arg name="cache" value=".phpcs.cache"/>
48

59
<!-- Necessary for class aliases used for backwards compat -->
610
<rule ref="PSR1.Files.SideEffects.FoundWithSymbols">

0 commit comments

Comments
 (0)