-
Notifications
You must be signed in to change notification settings - Fork 54
/
.php_cs
31 lines (30 loc) · 1.19 KB
/
.php_cs
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");
return PhpCsFixer\Config::create()
->setRules(
[
'@PSR2' => true,
'array_syntax' => [
'syntax' => 'short'
],
'class_keyword_remove' => false,
'concat_space' => [
'spacing' => 'one'
],
'combine_consecutive_unsets' => true,
'general_phpdoc_annotation_remove' => [
'annotations' => ['@author'],
],
'linebreak_after_opening_tag' => true,
'no_short_echo_tag' => true,
'no_useless_return' => true,
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => true,
'protected_to_private' => true,
'semicolon_after_instruction' => true,
]
)
->setFinder($finder);