-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
.php_cs
29 lines (26 loc) · 773 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
26
27
28
29
<?php
use PhpCsFixer\Finder;
use PhpCsFixer\Config;
$finder = Finder::create()
->exclude('bootstrap/cache')
->exclude('storage')
->exclude('vendor')
->in(__DIR__)
->ignoreDotFiles(true)
->ignoreVCS(true);
return Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'no_superfluous_elseif' => true,
'no_unneeded_curly_braces' => true,
'phpdoc_order' => true,
'phpdoc_types_order' => true,
'align_multiline_comment' => true,
])
->setUsingCache(false)
->setFinder($finder);