From 0d931e270b425b35fabb421ea21043ba2aaf9786 Mon Sep 17 00:00:00 2001 From: billchenchina Date: Fri, 10 Sep 2021 00:10:10 +0800 Subject: [PATCH] fix(lint): make ci happy --- .github/workflows/lint.yml | 2 +- web/{.php_cs => .php-cs-fixer.php} | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) rename web/{.php_cs => .php-cs-fixer.php} (82%) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3084da4d8..79cf4ce33 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,4 +9,4 @@ jobs: - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga with: - args: --config=./web/.php_cs --diff --dry-run \ No newline at end of file + args: --config=./web/.php-cs-fixer.php --diff --dry-run diff --git a/web/.php_cs b/web/.php-cs-fixer.php similarity index 82% rename from web/.php_cs rename to web/.php-cs-fixer.php index d86ed5ab5..5aa486e4a 100644 --- a/web/.php_cs +++ b/web/.php-cs-fixer.php @@ -5,7 +5,8 @@ ->in(__DIR__) ; -return PhpCsFixer\Config::create() +$config = new PhpCsFixer\Config(); +return $config ->setIndent("\t") ->setRules([ 'braces'=>[