-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
28 lines (26 loc) · 851 Bytes
/
.php_cs.dist
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
<?php
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/app',
__DIR__ . '/tests'
])
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['default' => 'single_space'],
'blank_line_after_opening_tag' => true,
'blank_line_before_statement' => true,
'concat_space' => ['spacing' => 'one'],
'method_chaining_indentation' => true,
'no_blank_lines_after_phpdoc' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'phpdoc_order' => true,
'single_blank_line_before_namespace' => true,
'whitespace_after_comma_in_array' => true,
])
->setFinder($finder)
;