1 Star 0 Fork 6

WeChan/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');
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wechans/eelly-sdk-php.git
git@gitee.com:wechans/eelly-sdk-php.git
wechans
eelly-sdk-php
eelly-sdk-php
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385