11 Star 6 Fork 0

khs1994-php / tencent-ai

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.php_cs 936 Bytes
一键复制 编辑 原始数据 按行查看 历史
khs1994 提交于 2018-06-02 13:23 . Update phpdoc
<?php
//
// $ composer global require friendsofphp/php-cs-fixer
//
// $ php-cs-fixer fix
//
// @link https://github.com/FriendsOfPHP/PHP-CS-Fixer
$finder = PhpCsFixer\Finder::create()
->exclude('build')
->exclude('cache')
->exclude('vendor')
// ->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
->in(__DIR__)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky'=>true,
'array_syntax' => array('syntax' => 'short'),
'ordered_imports' => true,
'full_opening_tag' => false,
'declare_strict_types' => true, // @PHP70Migration:risky, @PHP71Migration:risky
'ternary_to_null_coalescing' => true, // @PHP70Migration, @PHP71Migration
'void_return' => true, // @PHP71Migration:risky
])
->setCacheFile(__DIR__.'/.php_cs.cache')
->setFinder($finder)
->setRiskyAllowed(true)
;
PHP
1
https://gitee.com/khs1994-php/tencent-ai.git
git@gitee.com:khs1994-php/tencent-ai.git
khs1994-php
tencent-ai
tencent-ai
master

搜索帮助