-
Notifications
You must be signed in to change notification settings - Fork 33
/
.php_cs
25 lines (22 loc) · 825 Bytes
/
.php_cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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);