mirror of
https://github.com/kmvan/x-prober.git
synced 2026-08-12 19:31:34 +08:00
rename php-cs-fixer config file
update php-cs-fixer config
This commit is contained in:
@@ -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+
|
||||
Vendored
+2
-2
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user