File tree Expand file tree Collapse file tree 7 files changed +16
-14
lines changed
Expand file tree Collapse file tree 7 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 66credentials. *
77** /vendor /
88** /build /
9+ .php_cs.cache
Original file line number Diff line number Diff line change 11<?php
22
3- return Symfony \CS \Config \Config::create ()
4- ->level (Symfony \CS \FixerInterface::PSR2_LEVEL )
5- ->fixers ([
6- 'concat_with_spaces ' ,
7- 'unused_use ' ,
8- 'trailing_spaces ' ,
9- 'indentation '
10- ])
11- ;
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__ );
7+
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 );
Original file line number Diff line number Diff line change 1919
2020class ModulesApiTest extends WebTestCase
2121{
22-
2322 public function createApplication ()
2423 {
2524 $ app = require __DIR__ . '/../../app.php ' ;
Original file line number Diff line number Diff line change 2020
2121class TaskQueueTest extends WebTestCase
2222{
23-
2423 public function createApplication ()
2524 {
2625 $ app = require __DIR__ . '/../../app.php ' ;
Original file line number Diff line number Diff line change 1919
2020class PushTask
2121{
22-
2322 public static $ tasks = array ();
2423 public static $ added = array ();
2524 public $ url ;
Original file line number Diff line number Diff line change 2222 */
2323class User
2424{
25-
2625 private $ email ;
2726 private $ url ;
2827
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-file =.php_cs .
20+ ${HOME} /php-cs-fixer fix --dry-run --diff --config=.php_cs
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