1 Star 0 Fork 644

Jay / MeEdu

forked from 白书科技 / MeEdu 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.php_cs 974 Bytes
一键复制 编辑 原始数据 按行查看 历史
小滕 提交于 2020-01-15 09:52 . opt: 课程最近视频读取
<?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,
'yoda_style' => false,
'increment_style' => ['style' => 'post'],
// 三元运算符的空格
'ternary_operator_spaces' => true,
// .连接符两边空格,!没有空格
'unary_operator_spaces' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/app')
);
PHP
1
https://gitee.com/lmj/MeEdu.git
git@gitee.com:lmj/MeEdu.git
lmj
MeEdu
MeEdu
master

搜索帮助