-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
34 lines (32 loc) · 1.1 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
33
34
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . "/src")
->in(__DIR__ . "/tests");
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'no_blank_lines_after_phpdoc' => true,
'no_empty_phpdoc' => true,
'no_unused_imports' => true,
'phpdoc_indent' => true,
'phpdoc_scalar' => true,
'phpdoc_separation' => true,
'whitespace_after_comma_in_array' => true,
'method_separation' => true,
'no_extra_consecutive_blank_lines' => [
'tokens' => ['extra']
],
'concat_space' => [
'spacing' => 'one'
],
'binary_operator_spaces' => [
'align_double_arrow' => true
],
'blank_line_before_statement' => [
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try']
],
'ordered_imports' => [
'sortAlgorithm' => 'length'
]
])
->setFinder($finder);