-
Notifications
You must be signed in to change notification settings - Fork 45
/
.php-cs-fixer.dist.php
46 lines (40 loc) · 1.12 KB
/
.php-cs-fixer.dist.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
38
39
40
41
42
43
44
45
46
<?php
$header = <<<'HEADER'
This file is part of the Liip/TestFixturesBundle
(c) Lukas Kahwe Smith <[email protected]>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
HEADER;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->notPath('/cache/')
;
$config = new PhpCsFixer\Config();
return $config
->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => [
'syntax' => 'short',
],
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'header_comment' => [
'header' => $header,
],
'no_extra_blank_lines' => true,
'no_php4_constructor' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
],
'phpdoc_order' => true,
'strict_comparison' => true,
'strict_param' => true,
'php_unit_strict' => true,
])
->setUsingCache(true)
;