-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
37 lines (35 loc) · 1.2 KB
/
.php-cs-fixer.php
File metadata and controls
37 lines (35 loc) · 1.2 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
35
36
37
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude([
'vendor',
'src/Model/Generated'
]);
$config = new PhpCsFixer\Config();
return $config
->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,
'echo_tag_syntax' => [
'format' => 'long'
],
'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);