1 Star 0 Fork 0

clarifysky/satis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.php_cs.dist 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
<?php
/* This config requires PHP-CS-Fixer version ^2.9 */
$header = <<<EOF
This file is part of composer/satis.
(c) Composer <https://github.com/composer>
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
EOF;
$finder = (new PhpCsFixer\Finder())
->files()
->name('*.php')
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->in(__DIR__.'/views')
;
return (new PhpCsFixer\Config('satis'))
->setRiskyAllowed(true)
->setRules([
// default
'@PSR2' => true,
'@Symfony' => true,
// additionally
'array_syntax' => ['syntax' => 'short'],
'concat_space' => false,
'header_comment' => ['header' => $header],
'no_unused_imports' => false,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'phpdoc_align' => false,
'phpdoc_order' => true,
'phpdoc_align' => false,
'phpdoc_summary' => false,
'simplified_null_return' => false,
'ternary_to_null_coalescing' => true,
])
->setFinder($finder)
;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/clarifysky/satis.git
git@gitee.com:clarifysky/satis.git
clarifysky
satis
satis
1.x

搜索帮助