-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.php_cs.dist
57 lines (52 loc) · 1.57 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
53
54
55
56
57
<?php
/*
* (c) Copyright 2018 Vladimir Jimenez
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
$finder = PhpCsFixer\Finder::create()
->in('src')
->in('tests')
;
$licenseHeader = <<<EOL
(c) Copyright 2018 Vladimir Jimenez
For the full copyright and license information, please view the LICENSE.md
file that was distributed with this source code.
EOL;
return PhpCsFixer\Config::create()
->setRules(array(
'@Symfony' => true,
'array_syntax' => array('syntax' => 'long'),
'binary_operator_spaces' => array(
'align_double_arrow' => true,
),
'concat_space' => array('spacing' => 'one'),
'header_comment' => array(
'header' => $licenseHeader,
'commentType' => 'comment',
'location' => 'after_open',
'separate' => 'both',
),
'no_short_echo_tag' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'no_whitespace_in_blank_line' => true,
'ordered_imports' => array(
'sortAlgorithm' => 'alpha',
'importsOrder' => array(
'const',
'class',
'function',
),
),
'phpdoc_add_missing_param_annotation' => array('only_untyped' => false),
'phpdoc_order' => true,
'yoda_style' => array(
'equal' => false,
'identical' => false,
),
))
->setFinder($finder)
;