-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
37 lines (34 loc) · 1.04 KB
/
.php-cs-fixer.dist.php
File metadata and controls
37 lines (34 loc) · 1.04 KB
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
<?php
$binFinder = (new PhpCsFixer\Finder())
->in('bin')
->name('*');
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
->notPath([
'config/bundles.php',
'config/reference.php',
])
->append($binFinder);
return (new PhpCsFixer\Config())
->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'blank_line_between_import_groups' => false,
'concat_space' => ['spacing' => 'one'],
'date_time_immutable' => true,
'linebreak_after_opening_tag' => true,
'mb_str_functions' => false,
'native_constant_invocation' => false,
'native_function_invocation' => false,
'no_php4_constructor' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'php_unit_strict' => true,
'phpdoc_order' => true,
'strict_comparison' => true,
'strict_param' => true,
]);