Skip to content

Commit c70de6b

Browse files
author
Takashi Matsuo
committed
CS fixes.
1 parent 1fff950 commit c70de6b

File tree

7 files changed

+16
-14
lines changed

7 files changed

+16
-14
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ vendor/
66
credentials.*
77
**/vendor/
88
**/build/
9+
.php_cs.cache

.php_cs

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

appengine/standard/modules/tests/unit/ModulesApiTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
class ModulesApiTest extends WebTestCase
2121
{
22-
2322
public function createApplication()
2423
{
2524
$app = require __DIR__ . '/../../app.php';

appengine/standard/taskqueue/tests/unit/TaskQueueTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
class TaskQueueTest extends WebTestCase
2222
{
23-
2423
public function createApplication()
2524
{
2625
$app = require __DIR__ . '/../../app.php';

appengine/standard/taskqueue/tests/unit/mocks/PushTask.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
class PushTask
2121
{
22-
2322
public static $tasks = array();
2423
public static $added = array();
2524
public $url;

appengine/standard/users/tests/unit/mocks/User.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
*/
2323
class User
2424
{
25-
2625
private $email;
2726
private $url;
2827

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-file=.php_cs .
20+
${HOME}/php-cs-fixer fix --dry-run --diff --config=.php_cs
2121
fi
2222

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

0 commit comments

Comments
 (0)