-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
29 lines (27 loc) · 851 Bytes
/
.php-cs-fixer.php
File metadata and controls
29 lines (27 loc) · 851 Bytes
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
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('examples')
->exclude('tools')
->exclude('vendor')
;
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'@Symfony' => true,
// '@Symfony:risky' => true,
'@DoctrineAnnotation' => true,
'@PhpCsFixer' => true,
'no_superfluous_phpdoc_tags' => true,
'concat_space' => ['spacing' => 'one'],
'cast_spaces' => ['space' => 'none'],
'array_syntax' => ['syntax' => 'short'],
'protected_to_private' => false,
'native_function_invocation' => false,
'native_constant_invocation' => false,
'phpdoc_summary' => false,
'phpdoc_to_comment' => false,
'function_declaration' => ['closure_function_spacing' => 'none'],
])
->setFinder($finder)
;