forked from testmonitor/devops-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs
More file actions
34 lines (33 loc) · 1.18 KB
/
.php_cs
File metadata and controls
34 lines (33 loc) · 1.18 KB
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
<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setUsingCache(true)
->setRules(array(
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_before_return' => true,
'cast_spaces' => true,
'concat_space' => ['spacing' => 'one'],
'no_empty_statement' => true,
'no_extra_consecutive_blank_lines' => ['use'],
'no_leading_import_slash' => true,
'no_multiline_whitespace_around_double_arrow' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_unused_imports' => true,
'no_whitespace_in_blank_line' => true,
'object_operator_without_whitespace' => true,
'ordered_imports' => ['sortAlgorithm' => 'length'],
'phpdoc_order' => true,
'phpdoc_separation' => false,
'phpdoc_summary' => true,
'space_after_semicolon' => true,
'standardize_not_equals' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => true,
))
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
)
;