-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
30 lines (28 loc) · 1.25 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
<?php
$finder = Symfony\Component\Finder\Finder::create()
->in(__DIR__ . '/src')
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['align_double_arrow' => true],
'concat_space' => ['spacing' => 'one'],
'linebreak_after_opening_tag' => true,
'new_with_braces' => false,
'no_leading_namespace_whitespace' => true,
'no_blank_lines_before_namespace' => true,
'phpdoc_annotation_without_dot' => true,
'phpdoc_no_empty_return' => false,
'phpdoc_no_package' => false,
'phpdoc_order' => true,
'phpdoc_summary' => false,
'protected_to_private' => false,
'single_blank_line_before_namespace' => false,
'trailing_comma_in_multiline_array' => false,
'trim_array_spaces' => false,
])
->setFinder($finder);