18 Star 118 Fork 23

inhere / php-validate

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.php_cs 825 Bytes
一键复制 编辑 原始数据 按行查看 历史
<?php
$header = <<<'EOF'
@license https://github.com/inhere/php-validate/blob/master/LICENSE
EOF;
return PhpCsFixer\Config::create()->setRiskyAllowed(true)->setRules([
'@PSR2' => true,
// 'header_comment' => [
// 'comment_type' => 'PHPDoc',
// 'header' => $header,
// 'separate' => 'none'
// ],
'array_syntax' => [
'syntax' => 'short'
],
'single_quote' => true,
'class_attributes_separation' => true,
'no_unused_imports' => true,
'standardize_not_equals' => true,
'declare_strict_types' => true,
])->setFinder(PhpCsFixer\Finder::create()
// ->exclude('test')
->exclude('docs')->exclude('vendor')->in(__DIR__))->setUsingCache(false);
PHP
1
https://gitee.com/inhere/php-validate.git
git@gitee.com:inhere/php-validate.git
inhere
php-validate
php-validate
master

搜索帮助