-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php_cs
30 lines (27 loc) · 838 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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/spec')
->files()
->name('*.php');
$rules = [
'@Symfony' => true,
'blank_line_before_statement' => false,
'phpdoc_types_order' => false,
'increment_style' => false,
'standardize_increment' => false,
'array_syntax' => ['syntax' => 'short'],
'no_superfluous_phpdoc_tags' => true,
'no_superfluous_elseif' => true,
'array_indentation' => true,
'method_chaining_indentation' => true,
'no_unused_imports' => true,
'no_extra_consecutive_blank_lines' => ['use'],
'php_unit_namespaced' => ['target' => 'newest'],
'php_unit_expectation' => true,
'concat_space' => false,
];
return PhpCsFixer\Config::create()
->setRules($rules)
->setRiskyAllowed(true)
->setFinder($finder);