We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bf3a94 commit 5c26d64Copy full SHA for 5c26d64
2 files changed
.php-cs-fixer.php
@@ -0,0 +1,15 @@
1
+<?php
2
+
3
+$finder = PhpCsFixer\Finder::create()
4
+ ->in([
5
+ __DIR__ . '/lib',
6
+ __DIR__ . '/tests',
7
+ ])
8
+ ->append([
9
+ __FILE__,
10
+ __DIR__ . '/init.php',
11
+ __DIR__ . '/build.php',
12
+ ]);
13
14
+$config = new PhpCsFixer\Config();
15
+return $config;
composer.json
@@ -33,9 +33,10 @@
33
}
34
},
35
"scripts": {
36
- "test": [
37
- "phpcs --standard=PSR2 -n lib tests *.php",
38
- "phpunit"
39
- ]
+ "format": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --config=.php-cs-fixer.php lib tests *.php",
+ "test": [
+ "phpcs --standard=PSR2 -n lib tests *.php",
+ "phpunit"
40
+ ]
41
42
0 commit comments