-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
32 lines (30 loc) · 1.03 KB
/
.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
30
31
32
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sortAlgorithm' => 'length'],
'no_unused_imports' => true,
'blank_line_after_namespace' => true,
'elseif' => true,
'switch_case_space' => true,
'ternary_operator_spaces' => true,
'ternary_to_null_coalescing' => true,
'binary_operator_spaces' => ['align_double_arrow' => false],
'linebreak_after_opening_tag' => true,
'not_operator_with_successor_space' => false,
'phpdoc_order' => true,
'phpdoc_align' => ['align' => 'left'],
'concat_space'=> ['spacing' => 'one'],
'new_with_braces' => false,
'phpdoc_no_empty_return' => false,
])
->setFinder($finder);