Issues (18)

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

Labels
Severity
1
<?php
2
3
$excluded_folders = [
4
    'node_modules',
5
    'storage',
6
    'vendor',
7
];
8
9
$finder = 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...
10
    ->exclude($excluded_folders)
11
    ->in(__DIR__);
12
13
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...
14
    ->setRules([
15
        '@Symfony'               => true,
16
        'binary_operator_spaces' => [
17
            'operators' => [
18
                '=>' => 'align_single_space_minimal',
19
            ],
20
        ],
21
        'array_syntax'                      => ['syntax' => 'short'],
22
        'linebreak_after_opening_tag'       => true,
23
        'not_operator_with_successor_space' => true,
24
        'ordered_imports'                   => ['sort_algorithm' => 'length'],
25
        'phpdoc_order'                      => true,
26
        'method_argument_space'             => ['on_multiline' => 'ensure_fully_multiline'],
27
    ])
28
    ->setFinder($finder)
29
;
30