-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
80 lines (77 loc) · 2.73 KB
/
.php-cs-fixer.dist.php
File metadata and controls
80 lines (77 loc) · 2.73 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
declare(strict_types=1);
require_once __DIR__.'/vendor/autoload.php';
return
(new PhpCsFixer\Config())
->setFinder(
PhpCsFixer\Finder::create()
->in([
__DIR__.'/src',
__DIR__.'/tests',
])
->append([
__FILE__,
])
)
->setRules([
'@PHP71Migration' => true,
'@PHP71Migration:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHPUnit60Migration:risky' => true,
'blank_line_before_statement' => [
'statements' => [
'case',
'continue',
'declare',
'default',
'return',
'throw',
'try',
],
],
'date_time_immutable' => true,
'final_class' => true,
'fopen_flags' => ['b_mode' => true],
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
'remove_inheritdoc' => true,
],
'ordered_class_elements' => [
'order' => [
'use_trait',
'constant_public',
'constant_protected',
'constant_private',
'property_public_static',
'property_protected_static',
'property_private_static',
'property_public',
'property_protected',
'property_private',
'construct',
'destruct',
'phpunit',
'method_public_static',
'method_protected_static',
'method_private_static',
'magic',
'method_public',
'method_protected',
'method_private',
],
],
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
'php_unit_size_class' => true,
'php_unit_strict' => false,
'php_unit_test_case_static_method_calls' => ['call_type' => 'this'],
'phpdoc_add_missing_param_annotation' => false,
'phpdoc_to_comment' => false,
'phpdoc_types_order' => ['null_adjustment' => 'always_last'],
'phpdoc_var_without_name' => false,
'random_api_migration' => false,
'return_assignment' => false,
'single_line_comment_style' => ['comment_types' => ['hash']],
'static_lambda' => true,
])
;