Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
.php_cs 1.05 KB
Copy Edit Raw Blame History
Xiangxuan Liu authored 2018-11-10 22:13 . Add PHP-CS-Fixer
<?php
$header = <<<EOF
This file is part of the yikeio/yike.
(c) overtrue <i@overtrue.me>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
EOF;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(array(
'@Symfony' => true,
//'header_comment' => array('header' => $header),
'array_syntax' => array('syntax' => 'short'),
'ordered_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'php_unit_construct' => true,
'php_unit_strict' => true,
'yoda_style' => false,
))
->setFinder(
PhpCsFixer\Finder::create()
->notPath('app/Console/Kernel.php')
->notPath('app/Http/Kernel.php')
->exclude('bootstrap')
->exclude('config')
->exclude('database/factories')
->exclude('public')
->exclude('resources')
->exclude('storage')
->notPath('_ide_helper.php')
->in(__DIR__)
)
;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化