当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 132

冲击 / swoft
暂停

forked from swoft / swoft 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.php_cs 978 Bytes
一键复制 编辑 原始数据 按行查看 历史
inhere 提交于 2019-09-20 13:27 . fix: phpcs and phpstan error
<?php
$header = <<<'EOF'
This file is part of Swoft.
@link https://swoft.org
@document https://swoft.org/docs
@contact group@swoft.org
@license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
EOF;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'header_comment' => [
'commentType' => 'PHPDoc',
'header' => $header,
'separate' => 'none'
],
'array_syntax' => [
'syntax' => 'short'
],
'single_quote' => true,
'class_attributes_separation' => true,
'no_unused_imports' => true,
'standardize_not_equals' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('public')
->exclude('resource')
->exclude('config')
->exclude('runtime')
->exclude('vendor')
->in(__DIR__)
)
->setUsingCache(false);
PHP
1
https://gitee.com/1273640670/swoft.git
git@gitee.com:1273640670/swoft.git
1273640670
swoft
swoft
master

搜索帮助