forked from sensiolabs/GotenbergBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
38 lines (36 loc) · 1.03 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
<?php
$finder = (new PhpCsFixer\Finder())
->in([
__DIR__ . '/config',
__DIR__ . '/docs',
__DIR__ . '/src',
__DIR__ . '/tests',
])
;
return (new PhpCsFixer\Config())
->setUsingCache(false)
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'blank_line_between_import_groups' => false,
'native_function_invocation' => true,
'no_superfluous_elseif' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'nullable_type_declaration_for_default_null_value' => false,
'nullable_type_declaration' => [
'syntax' => 'union',
],
'return_assignment' => true,
'strict_param' => true,
'trailing_comma_in_multiline' => [
'elements' => ['arguments', 'arrays', 'match', 'parameters'],
],
'void_return' => true,
'yoda_style' => [
'always_move_variable' => true,
],
])
->setFinder($finder)
;