-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
44 lines (42 loc) · 1.61 KB
/
.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
36
37
38
39
40
41
42
43
44
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->notPath(__DIR__ . '/src/Resources/config/services.php')
->notPath(__DIR__ . '/src/DependencyInjection/Configuration.php')
;
$config = new PhpCsFixer\Config();
return $config
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'array_indentation' => true,
'method_chaining_indentation' => true,
'no_useless_else' => true,
'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'],
'global_namespace_import' => true,
'braces' => true,
'indentation_type' => true,
'binary_operator_spaces' => [
'operators' => [
'=>' => 'align_single_space_minimal',
],
],
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
'concat_space' => [
'spacing' => 'one',
],
'no_unreachable_default_argument_value' => true,
'no_useless_return' => true,
'phpdoc_order' => true,
'strict_comparison' => true,
'strict_param' => true,
])
->setIndent(str_pad('', 4))
->setFinder(
$finder
);