Passed
Pull Request — master (#32)
by Artem
07:12
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
10
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...
11
    ->setFinder($finder)
12
    ->setRiskyAllowed(true)
13
    ->setRules([
14
        '@PhpCsFixer' => 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
        'multiline_whitespace_before_semicolons' => [
24
            'strategy' => 'new_line_for_chained_calls'
25
        ],
26
        'ordered_imports' => [
27
            'sort_algorithm' => 'alpha',
28
            'imports_order' => [
29
                'class',
30
                'const',
31
                'function',
32
            ],
33
        ],
34
        'class_attributes_separation' => [
35
            'elements' => [
36
                'const' => 'none',
37
                'method' => 'one',
38
                'property' => 'none',
39
                'trait_import' => 'one',
40
            ],
41
        ],
42
        'blank_line_before_statement' => [
43
            'statements' => [
44
                'break',
45
                'continue',
46
                'return',
47
                'throw',
48
                'try',
49
            ],
50
        ],
51
    ])
52
;
53