-
Notifications
You must be signed in to change notification settings - Fork 6
/
.php-cs-fixer.dist.php
35 lines (31 loc) · 1020 Bytes
/
.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
<?php
$finder = PhpCsFixer\Finder::create()->in(__DIR__ . '/src/');
$rules = [
'@Symfony' => true,
'@Symfony:risky' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'increment_style' => ['style' => 'post'],
'is_null' => true,
'native_constant_invocation' => false,
'native_function_invocation' => false,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'php_unit_construct' => true,
'php_unit_dedicate_assert' => true,
'php_unit_expectation' => true,
'php_unit_test_case_static_method_calls' => true,
'phpdoc_order' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'return_assignment' => true,
'yoda_style' => false,
];
$config = (new PhpCsFixer\Config())
->setUsingCache(false)
->setRiskyAllowed(true)
->setRules($rules)
->setFinder($finder);
return $config;