Skip to content

Commit 25529c5

Browse files
Takashi Matsuobshaffer
authored andcommitted
Revert the php-cs config file to 1.x format. (GoogleCloudPlatform#114)
1 parent 9b611fb commit 25529c5

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.php_cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
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+
;

testing/run_test_suite.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ set -ex
1717

1818
# run php-cs-fixer
1919
if [ "${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
2121
fi
2222

2323
# loop through all directories containing "phpunit.xml" and run them

0 commit comments

Comments
 (0)