-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php-cs-fixer.php
44 lines (43 loc) · 1.23 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
43
44
<?php
return (new PhpCsFixer\Config())
->setRules([
'@PER' => true,
'@PSR12' => true,
'@Symfony' => true,
'@PhpCsFixer' => true,
'no_useless_return' => false,
'php_unit_test_class_requires_covers' => false,
'php_unit_internal_class' => false,
'phpdoc_align' => false,
'phpdoc_no_empty_return' => false,
'phpdoc_separation' => false,
'yoda_style' => false,
'trailing_comma_in_multiline' => false,
'multiline_whitespace_before_semicolons' => [
'strategy' => 'no_multi_line'
],
'concat_space' => [
'spacing' => 'one'
],
'not_operator_with_space' => false,
'operator_linebreak' => [
'position' => 'end',
'only_booleans' => true
],
'blank_line_before_statement' => [
'statements' => [
'return',
'throw',
'try',
'declare'
]
]
])
->setFinder(PhpCsFixer\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/tests/classes',
__DIR__ . '/examples/cloud/classes',
])
);