-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php-cs-fixer.dist.php
52 lines (43 loc) · 1.19 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
45
46
47
48
49
50
51
<?php
$finder = PhpCsFixer\Finder::create()->in([
'src',
'tests',
]);
return (new PhpCsFixer\Config)->setFinder($finder)
->setIndent("\t")
->setRiskyAllowed(true)
->setLineEnding("\n")
->setRules([
'@PHP80Migration:risky' => true,
'@PHP84Migration' => true,
'@PER-CS2.0' => true,
'@Symfony:risky' => true,
'@Symfony' => true,
// Overrides `@PHP80Migration:risky`
'declare_strict_types' => false,
// Overrides `@PHP84Migration`
'nullable_type_declaration_for_default_null_value' => false,
// Overrides `@Symfony:risky`
'is_null' => false,
// Overrides `@PER-CS2.0`
'new_with_parentheses' => [
'anonymous_class' => false,
'named_class' => false,
],
'trailing_comma_in_multiline' => [
'elements' => ['arrays', 'match', 'parameters'],
],
'control_structure_braces' => false,
'concat_space' => [
'spacing' => 'none',
],
// Overrides `@Symfony`
'phpdoc_summary' => false,
'ordered_imports' => false, //
'global_namespace_import' => false,
'single_line_throw' => false,
// Disabled to allow no separation between interface/abstract methods
'class_attributes_separation' => false,
// Additional
'single_line_empty_body' => true,
]);