1 Star 0 Fork 0

132142 / framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.php_cs 1.39 KB
一键复制 编辑 原始数据 按行查看 历史
runphp 提交于 2017-08-10 18:21 . 代码风格修改
#!/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,
];
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules($rules)
->setFinder($finder)
->setCacheFile(sys_get_temp_dir().'/.php_cs.cache');
PHP
1
https://gitee.com/moce-technology_demo/framework.git
git@gitee.com:moce-technology_demo/framework.git
moce-technology_demo
framework
framework
master

搜索帮助