-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.php_cs.php
31 lines (30 loc) · 1 KB
/
.php_cs.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
$config = new \PhpCsFixer\Config();
return $config
->setRiskyAllowed(true)
->setRules([
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => true,
'concat_space' => ['spacing' => 'one'],
'heredoc_to_nowdoc' => true,
'no_empty_statement' => true,
'no_extra_blank_lines' => true,
'no_null_property_initialization' => true,
'echo_tag_syntax' => true,
'no_unreachable_default_argument_value' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => false,
'ordered_imports' => true,
'semicolon_after_instruction' => true,
'single_line_comment_style' => ['comment_types' => ['hash']],
'return_type_declaration' => ['space_before' => 'none'],
'strict_comparison' => true
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
)
;