13 Star 138 Fork 36

陈某某 / duckphp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.php_cs 738 Bytes
一键复制 编辑 原始数据 按行查看 历史
chenguobing 提交于 2020-08-23 19:31 . 根据新版 phpstan 修复
<?php
$header = <<<'EOF'
DuckPhp
From this time, you never be alone~
EOF;
$finder = PhpCsFixer\Finder::create()
->files()
->in(__DIR__.'/src')
->name('*.php')
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'header_comment' => [
'commentType' => 'PHPDoc',
'header' => $header,
'separate' => 'none',
'location' => 'after_declare_strict',
],
'declare_strict_types' => true,
'binary_operator_spaces'=>true,
'ordered_imports'=>true,
'no_blank_lines_before_namespace'=>false,
'single_blank_line_before_namespace'=>true,
])
->setFinder($finder)
->setUsingCache(false);
PHP
1
https://gitee.com/dvaknheo/duckphp.git
git@gitee.com:dvaknheo/duckphp.git
dvaknheo
duckphp
duckphp
master

搜索帮助