3 Star 2 Fork 0

khs1994-docker / php-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.php_cs 902 Bytes
一键复制 编辑 原始数据 按行查看 历史
khs1994 提交于 2018-06-10 22:22 . Update php-cs-fixer config
<?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'),
'declare_strict_types' => true, // @PHP70Migration:risky, @PHP71Migration:risky
'ternary_to_null_coalescing' => true, // @PHP70Migration, @PHP71Migration
'void_return' => true, // @PHP71Migration:risky
'ordered_imports' => true,
])
->setCacheFile(__DIR__.'/.php_cs.cache')
->setFinder($finder)
->setRiskyAllowed(true)
;
PHP
1
https://gitee.com/khs1994-docker/php-demo.git
git@gitee.com:khs1994-docker/php-demo.git
khs1994-docker
php-demo
php-demo
master

搜索帮助