Skip to content

Commit 04d9c0e

Browse files
committed
Added phpcs and phpcs:fix commands to composer to replace old grunt-phpcs script.
1 parent 6ef1ca0 commit 04d9c0e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
],
2121
"post-install-cmd": [
2222
"cd php52; composer install; cd .."
23-
]
23+
],
24+
"phpcs": "phpcs --standard=src/ruleset-wordpress.xml wpengine-phpcompat.php load-files.php src/*.php",
25+
"phpcs:fix": "phpcbf --standard=src/ruleset-wordpress.xml wpengine-phpcompat.php load-files.php src/*.php"
2426
}
2527
}

0 commit comments

Comments
 (0)