Passed
Pull Request — master (#259)
by Arnaud
07:09 queued 02:15
created

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

Labels
Severity
1
<?php
2
3
$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...
4
    ->in('src/')
5
    ->exclude([
6
        'bin',
7
        'build',
8
        'vendor',
9
    ])
10
;
11
$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...
12
13
return $config
14
    ->setRules([
15
        '@Symfony' => true,
16
        '@Symfony:risky' => true,
17
        'phpdoc_align' => false,
18
        'yoda_style' => false,
19
        'elseif' => true,
20
        'declare_strict_types' => true,
21
    ])
22
    ->setFinder($finder)
23
;
24