-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.php_cs
31 lines (29 loc) · 854 Bytes
/
.php_cs
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
<?php declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__.'/src',
__DIR__.'/test',
__DIR__.'/bin',
])
->append([
__FILE__,
__DIR__.'/index.php',
])
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setFinder($finder)
->setRules([
'@PSR2' => true,
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'@PHP73Migration' => true,
'heredoc_indentation' => false,
'array_syntax' => ['syntax' => 'short'],
'class_attributes_separation' => ['elements' => ['method', 'property']],
'phpdoc_summary' => false,
'yoda_style' => null,
'no_unused_imports' => true,
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
])
;