-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php-cs-fixer.php
42 lines (41 loc) · 1.14 KB
/
.php-cs-fixer.php
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
35
36
37
38
39
40
41
42
<?php
return (new PhpCsFixer\Config())
->setRiskyAllowed(false)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'header_comment' => [
'header' => '',
'separate' => 'none',
],
'single_blank_line_before_namespace' => true,
'no_extra_blank_lines' => [
'tokens' => [
'break',
'continue',
'extra',
'return',
'throw',
'use',
'parenthesis_brace_block',
'square_brace_block',
'curly_brace_block'
]
],
'phpdoc_align' => false,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'cast_spaces' => true,
'binary_operator_spaces' => false,
'increment_style' => false,
'yoda_style' => false,
'trailing_comma_in_multiline' => true,
'single_line_throw' => false,
])
->setFinder(
(new PhpCsFixer\Finder())
->exclude([
'vendor',
])
->in(__DIR__)
);