1 Star 0 Fork 644

kf1080 / MeEdu

forked from 白书科技 / MeEdu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.php_cs 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
xtt 提交于 2021-07-07 10:05 . update copyright
<?php
$header = <<<EOF
This file is part of the Qsnh/meedu.
(c) 杭州白书科技有限公司
EOF;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'header_comment' => ['header' => $header],
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => [
'sort_algorithm' => 'length',
],
'not_operator_with_successor_space' => false,
'no_useless_else' => true,
'no_useless_return' => true,
'no_unused_imports' => true,
'yoda_style' => false,
'single_quote' => true,
'increment_style' => ['style' => 'post'],
// 三元运算符的空格
'ternary_operator_spaces' => true,
// .连接符两边空格,!没有空格
'unary_operator_spaces' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('addons')
->exclude('docker')
->exclude('docs')
->exclude('library')
->exclude('node_modules')
->exclude('public')
->exclude('resources')
->exclude('storage')
->exclude('templates')
->exclude('vendor')
->in(__DIR__)
)
->setUsingCache(false);
PHP
1
https://gitee.com/kf1080/MeEdu.git
git@gitee.com:kf1080/MeEdu.git
kf1080
MeEdu
MeEdu
master

搜索帮助