File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed
Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- $ finder = PhpCsFixer \Finder::create ()
4- ->notPath ('appengine/wordpress/src/files/flexible/wp-config.php ' )
5- ->notPath ('appengine/wordpress/src/files/standard/wp-config.php ' )
6- ->in (__DIR__ );
3+ $ finder = Symfony \CS \Finder \DefaultFinder::create ()
4+ ->in (__DIR__ )
5+ ;
76
8- return PhpCsFixer \Config::create ()
9- ->setRules (array (
10- '@PSR2 ' => true ,
11- 'concat_with_spaces ' => true ,
12- 'no_unused_imports ' => true ,
13- 'no_trailing_whitespace ' => true ,
14- 'no_tab_indentation ' => true ,
15- ))
16- ->finder ($ finder );
7+ return Symfony \CS \Config \Config::create ()
8+ ->level (Symfony \CS \FixerInterface::PSR2_LEVEL )
9+ ->fixers ([
10+ 'concat_with_spaces ' ,
11+ 'unused_use ' ,
12+ 'trailing_spaces ' ,
13+ 'indentation '
14+ ])
15+ ->finder ($ finder )
16+ ;
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ set -ex
1717
1818# run php-cs-fixer
1919if [ " ${RUN_CS_FIXER} " = " true" ]; then
20- ${HOME} /php-cs-fixer fix --dry-run --diff --config=.php_cs
20+ ${HOME} /php-cs-fixer fix --dry-run --diff
2121fi
2222
2323# loop through all directories containing "phpunit.xml" and run them
You can’t perform that action at this time.
0 commit comments