Test Failed
Push — master ( 40a3e3...b867d7 )
by Daniel
08:13 queued 03:11
created

.php-cs-fixer.dist.php (2 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
$header = <<<'HEADER'
6
This file is part of the Silverback API Components Bundle Project
7
8
(c) Daniel West <[email protected]>
9
10
For the full copyright and license information, please view the LICENSE
11
file that was distributed with this source code.
12
HEADER;
13
14
$finder = PhpCsFixer\Finder::create()
0 ignored issues
show
The type PhpCsFixer\Finder was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
15
    ->in(__DIR__)
16
    ->exclude('tests/Functional/app/var')
17
    ->append([
18
        'tests/Functional/app/console',
19
    ]);
20
21
return PhpCsFixer\Config::create()
0 ignored issues
show
The type PhpCsFixer\Config was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
22
    ->setRiskyAllowed(true)
23
    ->setRules([
24
        '@DoctrineAnnotation' => true,
25
        '@PHP73Migration' => true,
26
        '@PHP71Migration:risky' => true,
27
        '@PHPUnit60Migration:risky' => true,
28
        '@Symfony' => true,
29
        '@Symfony:risky' => true,
30
        'align_multiline_comment' => [
31
            'comment_type' => 'phpdocs_like',
32
        ],
33
        'array_indentation' => true,
34
        'array_syntax' => [
35
            'syntax' => 'short',
36
        ],
37
        'comment_to_phpdoc' => true,
38
        'compact_nullable_typehint' => true,
39
        'concat_space' => [
40
          'spacing' => 'one'
41
        ],
42
        'doctrine_annotation_array_assignment' => [
43
            'operator' => '=',
44
        ],
45
        'doctrine_annotation_spaces' => [
46
            'after_array_assignments_equals' => false,
47
            'before_array_assignments_equals' => false,
48
        ],
49
        'explicit_indirect_variable' => true,
50
        'fully_qualified_strict_types' => true,
51
        'header_comment' => [
52
            'header' => $header,
53
            'location' => 'after_open',
54
        ],
55
        'logical_operators' => true,
56
        'multiline_comment_opening_closing' => true,
57
        'multiline_whitespace_before_semicolons' => [
58
            'strategy' => 'no_multi_line',
59
        ],
60
        'no_alternative_syntax' => true,
61
        'no_extra_blank_lines' => [
62
            'tokens' => [
63
                'break',
64
                'continue',
65
                'curly_brace_block',
66
                'extra',
67
                'parenthesis_brace_block',
68
                'return',
69
                'square_brace_block',
70
                'throw',
71
                'use',
72
            ],
73
        ],
74
        'no_superfluous_elseif' => true,
75
        'no_superfluous_phpdoc_tags' => [
76
            'allow_mixed' => false,
77
        ],
78
        'no_unset_cast' => true,
79
        'no_unset_on_property' => true,
80
        'no_useless_else' => true,
81
        'no_useless_return' => true,
82
        'ordered_imports' => [
83
            'imports_order' => [
84
                'class',
85
                'function',
86
                'const',
87
            ],
88
            'sort_algorithm' => 'alpha',
89
        ],
90
        'php_unit_method_casing' => [
91
            'case' => 'snake_case',
92
        ],
93
        'php_unit_set_up_tear_down_visibility' => true,
94
        'php_unit_test_annotation' => [
95
            'style' => 'prefix',
96
        ],
97
        'phpdoc_add_missing_param_annotation' => [
98
            'only_untyped' => true,
99
        ],
100
        'phpdoc_order' => true,
101
        'phpdoc_trim_consecutive_blank_line_separation' => true,
102
        'phpdoc_var_annotation_correct_order' => true,
103
        'return_assignment' => true,
104
        'strict_param' => true,
105
        'visibility_required' => [
106
            'elements' => [
107
                'const',
108
                'method',
109
                'property',
110
            ],
111
        ],
112
        'void_return' => false,
113
        'method_argument_space' => [
114
            'on_multiline' => 'ensure_fully_multiline'
115
        ]
116
    ])
117
    ->setFinder($finder);
118