Passed
Push — main ( 292729...118966 )
by Razon
05:20
created

.php-cs-fixer.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
    ->exclude('somedir')
5
    ->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
6
    ->in(__DIR__)
7
;
8
9
$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...
10
return $config->setRules([
11
        '@PSR12' => true,
12
        'no_unused_imports' => true,
13
        'array_syntax' => ['syntax' => 'short'],
14
    ])
15
    ->setFinder($finder)
16
;
17