1 Star 0 Fork 6

广州胜任力教育研究院 / eelly-sdk-php

forked from shadon / eelly-sdk-php
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.php_cs 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
runphp 提交于 2017-12-01 11:28 . 代码调整
#!/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');
PHP
1
https://gitee.com/shengrenli/eelly-sdk-php.git
git@gitee.com:shengrenli/eelly-sdk-php.git
shengrenli
eelly-sdk-php
eelly-sdk-php
master

搜索帮助