-
Notifications
You must be signed in to change notification settings - Fork 6
/
.php-cs-fixer.php
38 lines (37 loc) · 1.35 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
<?php
return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => true,
'@PHP74Migration' => true,
'binary_operator_spaces' => ['operators' => ['=>' => 'single_space', '=' => 'single_space']],
'blank_line_before_statement' => ['statements' => ['return']],
'cast_spaces' => true,
'concat_space' => ['spacing' => 'none'],
'declare_strict_types' => true,
'fully_qualified_strict_types' => true,
'phpdoc_separation' => true,
'native_function_invocation' => ['include' => ['@all']],
'no_extra_blank_lines' => true,
'no_spaces_around_offset' => ['positions' => ['inside', 'outside']],
'no_unneeded_control_parentheses' => true,
'no_unused_imports' => true,
'no_whitespace_in_blank_line' => true,
'phpdoc_align' => true,
'phpdoc_no_access' => true,
'php_unit_fqcn_annotation' => true,
'self_accessor' => true,
'single_quote' => true,
'return_type_declaration' => true,
'trailing_comma_in_multiline' => true,
'trim_array_spaces' => true,
'void_return' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->in(__DIR__ . '/benchmarks')
)
->setRiskyAllowed(true)
->setUsingCache(false)
;