forked from redaxo/redaxo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
52 lines (49 loc) · 1.53 KB
/
.php_cs.dist
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
$src = __DIR__.'/redaxo/src';
$finder = PhpCsFixer\Finder::create()
->exclude('fragments')
->in([
$src.'/core',
$src.'/addons/backup',
$src.'/addons/be_style',
$src.'/addons/cronjob',
$src.'/addons/debug',
$src.'/addons/install',
$src.'/addons/media_manager',
$src.'/addons/mediapool',
$src.'/addons/metainfo',
$src.'/addons/phpmailer',
$src.'/addons/project',
$src.'/addons/structure',
$src.'/addons/tests',
$src.'/addons/textile',
$src.'/addons/users',
])
->filter(function (\SplFileInfo $file) use ($src) {
return $src.'/core/boot.php' !== $file->getRealPath();
})
;
return PhpCsFixer\Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_before_return' => false,
'braces' => ['allow_single_line_closure' => false],
'concat_space' => false,
'heredoc_to_nowdoc' => true,
'no_blank_lines_after_phpdoc' => false,
'no_php4_constructor' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'phpdoc_annotation_without_dot' => false,
'phpdoc_no_package' => false,
'phpdoc_to_comment' => false,
'phpdoc_var_without_name' => false,
'psr4' => false,
])
->setFinder($finder)
;