Issues (203)

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

Labels
Severity
1
<?php
2
/*
3
 * PHPCsFixer code style configuration file
4
 */
5
$config = 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...
6
7
return $config->
8
        setIndent("\t")->
9
        setRules([
10
                '@PhpCsFixer' => true,
11
                'blank_line_before_statement' => ['statements' => ['case', 'continue',
12
                        'declare', 'default', 'exit', 'goto', 'phpdoc', 'return', 'switch', 'throw', 'try', 'yield', ]],
13
                'single_space_around_construct' => true,
14
                'control_structure_braces' => true,
15
                'control_structure_continuation_position' => ['position' => 'next_line'],
16
                'declare_parentheses' => true,
17
                'no_multiple_statements_per_line' => true,
18
                'braces_position' => ['functions_opening_brace' => 'same_line', 'classes_opening_brace' => 'same_line'],
19
                'statement_indentation' => true,
20
                'no_extra_blank_lines' => true,
21
                'concat_space' => ['spacing' => 'one'],
22
                'indentation_type' => true,
23
                'operator_linebreak' => ['position' => 'end'],
24
                'ordered_class_elements' => false,
25
                'single_line_comment_style' => false,
26
                'single_quote' => false,
27
                'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
28
        ])->
29
        setFinder(
30
                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...
31
                        exclude(['vendor', 'node_modules', 'tests'])->
32
                        notPath('dev/autoloader.php')->
33
                        in(__DIR__)
34
        )
35
;
36