-
Notifications
You must be signed in to change notification settings - Fork 4
/
.php_cs.dist.php
39 lines (34 loc) · 1.02 KB
/
.php_cs.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
<?php
$header = <<<EOF
This file is part of the Divergence package.
(c) Henry Paradiz <[email protected]>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$finder = (new PhpCsFixer\Finder())
//->exclude('somedir')
->in(__DIR__)
;
return (new PhpCsFixer\Config())
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'trailing_comma_in_multiline_array' => true,
'no_trailing_comma_in_singleline_array' => true,
'ternary_operator_spaces' => true,
'trim_array_spaces' => true,
'ordered_imports' => [
'sortAlgorithm' => 'length'
],
'ordered_class_elements' => true,
'indentation_type' => true,
'header_comment' => [
'header' => $header,
'comment_type' => 'PHPDoc',
'location' => 'after_open',
'separate' => 'none',
]
])
->setFinder($finder)
;