Passed
Pull Request — master (#32)
by Artem
01:40
created

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

Labels
Severity
1
<?php
2
3
$finder = (new PhpCsFixer\Finder())
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...
4
    ->in([
5
        __DIR__ . '/src',
6
        __DIR__ . '/tests',
7
    ]);
8
9
return (new PhpCsFixer\Config())
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...
10
    ->setFinder($finder)
11
    ->setRiskyAllowed(true)
12
    ->setRules([
13
        '@PhpCsFixer' => true,
14
        'phpdoc_param_order' => true,
15
        'cast_spaces' => ['space' => 'none'],
16
        'trailing_comma_in_multiline' => true,
17
        'blank_line_after_opening_tag' => false,
18
        'array_indentation' => true,
19
        'void_return' => true,
20
        'trim_array_spaces' => true,
21
        'yoda_style' => ['identical' => false],
22
        'phpdoc_add_missing_param_annotation' => true,
23
        'no_empty_comment' => true,
24
        'no_superfluous_phpdoc_tags' => [
25
            'allow_mixed' => true,
26
            'allow_unused_params' => false,
27
            'allow_hidden_params' => false,
28
        ],
29
        'multiline_whitespace_before_semicolons' => [
30
            'strategy' => 'new_line_for_chained_calls'
31
        ],
32
        'phpdoc_order_by_value' => [
33
            'annotations' => [
34
                "covers",
35
                "dataProvider",
36
                "author",
37
                "internal",
38
                "property",
39
                "throws",
40
                "uses"
41
            ]
42
        ],
43
        'ordered_imports' => [
44
            'sort_algorithm' => 'alpha',
45
            'imports_order' => [
46
                'class',
47
                'const',
48
                'function',
49
            ],
50
        ],
51
        'class_attributes_separation' => [
52
            'elements' => [
53
                'const' => 'none',
54
                'method' => 'one',
55
                'property' => 'none',
56
                'trait_import' => 'one',
57
            ],
58
        ],
59
        'blank_line_before_statement' => [
60
            'statements' => [
61
                'break',
62
                'continue',
63
                'return',
64
                'throw',
65
                'try',
66
            ],
67
        ],
68
    ]);
69