forked from sensiolabs/GotenbergBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
36 lines (34 loc) · 1.06 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
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude(__DIR__.'/var/')
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_indentation' => true,
'blank_line_between_import_groups' => false,
'compact_nullable_type_declaration' => true,
'fully_qualified_strict_types' => true,
'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)
;