/
.php-cs-fixer.dist.php
38 lines (36 loc) · 1021 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
36
37
38
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_indentation' => true,
'cast_spaces' => [
'space' => 'none',
],
'compact_nullable_type_declaration' => true,
'declare_strict_types' => true,
'native_function_invocation' => [
'include' => ['@internal'],
],
'no_superfluous_elseif' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'nullable_type_declaration_for_default_null_value' => false,
'ordered_imports' => [
'imports_order' => [
'class',
'function',
'const',
],
'sort_algorithm' => 'alpha',
],
'return_assignment' => true,
'strict_param' => true,
'void_return' => true,
])
->setFinder($finder)
;