-
Notifications
You must be signed in to change notification settings - Fork 12
/
.php-cs-fixer.php
31 lines (29 loc) · 1.09 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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/test');
$config = new PhpCsFixer\Config();
return $config
->setUsingCache(false)
->setRules(
array(
'@PSR12' => true,
'no_blank_lines_after_phpdoc' => true,
'phpdoc_add_missing_param_annotation' => true,
'native_function_casing' => true,
'class_attributes_separation' => ['elements' => ['method' => 'one']],
'method_argument_space' => true,
'no_empty_statement' => true,
'no_leading_import_slash' => true,
'no_multiline_whitespace_around_double_arrow' => true,
'multiline_whitespace_before_semicolons' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_spaces_around_offset' => true,
'no_trailing_comma_in_singleline' => true,
'no_unused_imports' => true,
'normalize_index_brace' => true,
'phpdoc_align' => true,
'phpdoc_separation' => true,
)
)
->setFinder($finder);