Issues (6)

php_cs.php (2 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
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...
6
    ->setRules([
7
        // General fixers
8
        'psr0' => false,
9
        '@Symfony' => true,
10
        'array_syntax' => [
11
            'syntax' => 'short',
12
        ],
13
        'not_operator_with_successor_space' => true,
14
        'ordered_imports' => true,
15
        'linebreak_after_opening_tag' => true,
16
        'method_argument_space' => [
17
            'keep_multiple_spaces_after_comma' => true,
18
            'on_multiline' => 'ensure_fully_multiline',
19
        ],
20
        'fopen_flags' => true,
21
        // 'heredoc_indentation' => true, // Can be enabled on PHP >= 7.3 environment
22
        'list_syntax' => [
23
            'syntax' => 'short',
24
        ],
25
        // @PhpCsFixer:risky
26
        'logical_operators' => true,
27
        // @PHP71Migration
28
        'ternary_to_null_coalescing' => true,
29
        // @PHP71Migration:risky
30
        'void_return' => true,
31
        'random_api_migration' => true,
32
        'pow_to_exponentiation' => true,
33
        'declare_strict_types' => true,
34
        // @Symfony overrides
35
        'concat_space' => [
36
            'spacing' => 'one',
37
        ],
38
        // @Symfony:risky
39
        'is_null' => true,
40
        'modernize_types_casting' => true,
41
        'dir_constant' => true,
42
        'non_printable_character' => [
43
            'use_escape_sequences_in_strings' => false,
44
        ],
45
        'self_accessor' => true,
46
        'no_alias_functions' => true,
47
        'function_to_constant' => true,
48
        'ereg_to_preg' => true,
49
        'fopen_flag_order' => true,
50
        'implode_call' => true,
51
        'native_function_invocation' => [
52
            'include' => [
53
                '@compiler_optimized',
54
            ],
55
            'scope' => 'namespaced',
56
            'strict' => true,
57
        ],
58
        'php_unit_construct' => true,
59
        // PHPUnit
60
        'php_unit_method_casing' => [
61
            'case' => 'snake_case',
62
        ],
63
        'php_unit_test_annotation' => [
64
            'style' => 'annotation',
65
        ],
66
        // PHPDoc
67
        'phpdoc_align' => [
68
            'align' => 'left',
69
        ],
70
        'phpdoc_order' => true,
71
        'phpdoc_add_missing_param_annotation' => true,
72
        'phpdoc_var_annotation_correct_order' => true,
73
        'phpdoc_trim_consecutive_blank_line_separation' => true,
74
    ])
75
    ->setRiskyAllowed(true)
76
    ->setFinder(
77
        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...
78
            ->in(__DIR__)
79
            ->exclude([
80
                'bootstrap/cache',
81
                'bower_components',
82
                'node_modules',
83
                'tasks',
84
                'public',
85
                'bin',
86
                'storage',
87
                'vendor',
88
            ])
89
            ->notPath('_ide_helper_models.php')
90
            ->notPath('_ide_helper.php')
91
            ->notPath('.phpstorm.meta.php')
92
            ->ignoreDotFiles(true)
93
            ->ignoreVCS(true)
94
    );
95