rename php-cs-fixer config file

update php-cs-fixer config
This commit is contained in:
Km.Van
2026-07-11 10:50:32 +08:00
parent 685e9ce17b
commit 1592505c01
3 changed files with 5 additions and 5 deletions
@@ -11,7 +11,7 @@ $finder = (new PhpCsFixer\Finder())
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setIndent(" ")
->setIndent(' ')
->setRiskyAllowed(true)
->setLineEnding("\n")
->setUsingCache(false)
@@ -87,7 +87,7 @@ return (new PhpCsFixer\Config())
'ordered_imports' => true,
'single_quote' => true,
'yoda_style' => true,
'constant_case' => ['case' => 'lowercase'],
'constant_case' => ['case' => 'lower'],
// 显式禁用会破坏 PHP 5.4 语法的现代规则
'declare_strict_types' => false, // PHP 7.0+
+1 -1
View File
@@ -1,5 +1,5 @@
{
"php-cs-fixer.config": ".php-cs-fixer54",
"php-cs-fixer.config": ".php-cs-fixer.dist.php",
"php-cs-fixer.allowRisky": true,
"php.suggest.basic": false
}
+1 -1
View File
@@ -11,7 +11,7 @@
"build": "vite build --config ./prod.vite.config.mjs",
"build:php": "bash ./php-build.sh",
"build:php-debug": "php ./Make.php build debug && echo '\nPlease access via http://localhost:8001/prober.php' && PHP_CLI_SERVER_WORKERS=4 php -S localhost:8001 -t dist",
"php-cs-fixer-54": "php-cs-fixer fix ./src --config=.php-cs-fixer54"
"php-cs-fixer-54": "php-cs-fixer fix ./src --config=.php-cs-fixer54.php"
},
"browserslist": [
"defaults"