Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ vendor/
credentials.*
**/vendor/
**/build/
.php_cs.cache
23 changes: 14 additions & 9 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
<?php

return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers([
'concat_with_spaces',
'unused_use',
'trailing_spaces',
'indentation'
])
;
$finder = PhpCsFixer\Finder::create()
->notPath('appengine/wordpress/src/files/flexible/wp-config.php')
->notPath('appengine/wordpress/src/files/standard/wp-config.php')
->in(__DIR__);

return PhpCsFixer\Config::create()
->setRules(array(
'@PSR2' => true,
'concat_with_spaces' => true,
'no_unused_imports' => true,
'no_trailing_whitespace' => true,
'no_tab_indentation' => true,
))
->finder($finder);
1 change: 0 additions & 1 deletion appengine/standard/modules/tests/unit/ModulesApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

class ModulesApiTest extends WebTestCase
{

public function createApplication()
{
$app = require __DIR__ . '/../../app.php';
Expand Down
1 change: 0 additions & 1 deletion appengine/standard/taskqueue/tests/unit/TaskQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

class TaskQueueTest extends WebTestCase
{

public function createApplication()
{
$app = require __DIR__ . '/../../app.php';
Expand Down
1 change: 0 additions & 1 deletion appengine/standard/taskqueue/tests/unit/mocks/PushTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

class PushTask
{

public static $tasks = array();
public static $added = array();
public $url;
Expand Down
1 change: 0 additions & 1 deletion appengine/standard/users/tests/unit/mocks/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
*/
class User
{

private $email;
private $url;

Expand Down
2 changes: 1 addition & 1 deletion testing/run_test_suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ set -ex

# run php-cs-fixer
if [ "${RUN_CS_FIXER}" = "true" ]; then
${HOME}/php-cs-fixer fix --dry-run --diff --config-file=.php_cs .
${HOME}/php-cs-fixer fix --dry-run --diff --config=.php_cs
fi

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