6 Star 24 Fork 4

宇润 / mddoc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.php_cs.dist 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
宇润 提交于 2021-04-25 13:06 . 设置为可执行文件 build.php
<?php
if (!file_exists(__DIR__ . '/src'))
{
exit(0);
}
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'php_unit_dedicate_assert' => ['target' => '5.6'],
'array_syntax' => ['syntax' => 'short'],
'array_indentation' => true,
'binary_operator_spaces' => [
'operators' => [
'=>' => 'align_single_space',
],
],
'concat_space' => [
'spacing' => 'one',
],
'fopen_flags' => false,
'protected_to_private' => false,
'native_constant_invocation' => true,
'combine_nested_dirname' => true,
'single_quote' => true,
'braces' => [
'position_after_control_structures' => 'next',
],
'no_superfluous_phpdoc_tags' => false,
'backtick_to_shell_exec' => false,
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->exclude(__DIR__ . '/vendor')
->in(__DIR__ . '/src')
->in(__DIR__ . '/config')
->append([__FILE__, __DIR__ . '/build.php', __DIR__ . '/github-webhook.php'])
)
;
PHP
1
https://gitee.com/yurunsoft/mddoc.git
git@gitee.com:yurunsoft/mddoc.git
yurunsoft
mddoc
mddoc
master

搜索帮助