1 Star 0 Fork 662

ehovel/MeEdu

forked from 白书科技/MeEdu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.php_cs 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
小滕 提交于 2020-06-18 12:08 . php-cs-fixer rules update
<?php
$header = <<<EOF
This file is part of the Qsnh/meedu.
(c) XiaoTeng <616896861@qq.com>
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([
'@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__)
);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/ehovel/MeEdu.git
git@gitee.com:ehovel/MeEdu.git
ehovel
MeEdu
MeEdu
master

搜索帮助