Watch Star Fork

shadon / frameworkPHPMPL-2.0

加入码云
与超过 300 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
暂无描述
一键复制 编辑 原始数据 按行查看 历史
.php_cs 1.48 KB runphp 提交于 2017-11-25 17:59 . http server 修改
#!/usr/bin/env php
<?php
$fileHeaderComment = <<<COMMENT
This file is part of eelly package.
(c) eelly.com
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
COMMENT;
define('ROOT_PATH', __DIR__);
chdir(ROOT_PATH);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__);
$rules = [
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'ordered_imports' => true,
'array_syntax' => ['syntax' => 'short'],
'header_comment' => ['header' => $fileHeaderComment],
'ordered_class_elements' => true,
'no_multiline_whitespace_before_semicolons' => true,
'binary_operator_spaces' => ['align_double_arrow' => true],
'declare_equal_normalize' => ['space' => 'none'],
'phpdoc_order' => true,
'phpdoc_no_alias_tag' => [],
'phpdoc_var_without_name' => false,
'increment_style' => ['style' => 'post'],
];
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules($rules)
->setFinder($finder)
->setCacheFile(sys_get_temp_dir().'/'.md5(__FILE__).'.php_cs.cache');

评论 ( 0 )

你可以在登录后,发表评论

搜索帮助