Issues (2)

php_cs.php (2 issues)

Labels
Severity
1
<?php
2
3
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...
4
    ->setRules([
5
        'psr0' => false,
6
        '@PSR2' => true,
7
        'array_syntax' => [
8
            'syntax' => 'short',
9
        ],
10
        'no_unreachable_default_argument_value' => false,
11
        'braces' => [
12
            'allow_single_line_closure' => false,
13
        ],
14
        'binary_operator_spaces' => [
15
            'align_double_arrow' => false,
16
            'align_equals' => false,
17
        ],
18
        'trailing_comma_in_multiline_array' => true,
19
        'whitespace_after_comma_in_array' => true,
20
        'blank_line_after_opening_tag' => true,
21
        'blank_line_before_return' => true,
22
        'cast_spaces' => [
23
            'space' => 'single',
24
        ],
25
        'function_typehint_space' => true,
26
        'hash_to_slash_comment' => true,
27
        'linebreak_after_opening_tag' => true,
28
        'lowercase_cast' => true,
29
        'method_separation' => true,
30
        'new_with_braces' => true,
31
        'no_blank_lines_after_class_opening' => true,
32
        'no_blank_lines_after_phpdoc' => true,
33
        'no_unused_imports' => true,
34
        'phpdoc_align' => false,
35
        'phpdoc_no_package' => true,
36
        'phpdoc_order' => true,
37
        'phpdoc_add_missing_param_annotation' => true,
38
        'phpdoc_separation' => true,
39
        'phpdoc_trim' => true,
40
        'method_argument_space' => [
41
            'ensure_fully_multiline' => true,
42
            'keep_multiple_spaces_after_comma' => true,
43
        ],
44
        'single_quote' => true,
45
        'phpdoc_no_empty_return' => false,
46
        'single_blank_line_before_namespace' => true,
47
        'blank_line_before_statement' => [
48
            'statements' => [
49
                'break', 'continue', 'declare', 'return', 'throw', 'try',
50
            ],
51
        ],
52
        'class_attributes_separation' => true,
53
        'concat_space' => [
54
            'spacing' => 'one',
55
        ],
56
        'declare_equal_normalize' => [
57
            'space' => 'single',
58
        ],
59
        'no_spaces_inside_parenthesis' => true,
60
        'ternary_operator_spaces' => true,
61
        'no_leading_import_slash' => true,
62
63
        // @PHP71Migration
64
        'ternary_to_null_coalescing' => true,
65
        'visibility_required' => true,
66
67
        // @PHP71Migration:risky
68
        'void_return' => true,
69
        'random_api_migration' => true,
70
        'pow_to_exponentiation' => true,
71
72
        // @Symfony:risky
73
        'dir_constant' => true,
74
        'function_to_constant' => true,
75
        'is_null' => true,
76
        'modernize_types_casting' => true,
77
        'no_alias_functions' => true,
78
    ])
79
    ->setRiskyAllowed(true)
80
    ->setFinder(
81
        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...
82
            ->in(__DIR__)
83
            ->exclude([
84
                'bootstrap/cache',
85
                'bower_components',
86
                'node_modules',
87
                'tasks',
88
                'public',
89
                'bin',
90
                'storage',
91
                'vendor',
92
            ])
93
            ->notPath('_ide_helper_models.php')
94
            ->notPath('_ide_helper.php')
95
            ->notPath('.phpstorm.meta.php')
96
            ->ignoreDotFiles(true)
97
            ->ignoreVCS(true)
98
    );
99