forked from mollie/Shopware6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.php
37 lines (30 loc) · 825 Bytes
/
.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
32
33
34
35
36
37
<?php
$finder = \PhpCsFixer\Finder::create()->in([
__DIR__ . '/src',
]);
$finder->exclude(
[
'Resources'
]
);
$config = new \PhpCsFixer\Config();
$config->setRules(
[
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'no_superfluous_elseif' => true,
'not_operator_with_successor_space' => false,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_types_order' => true,
'yoda_style' => false,
'no_unused_imports' => true,
]
);
$config->setFinder($finder);
$config->setUsingCache(false);
return $config;