Passed
Pull Request — master (#79)
by Peter
03:09
created

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

Labels
Severity
1
<?php
2
declare(strict_types=1);
3
4
$header = <<<EOF
5
GpsLab component.
6
7
@author    Peter Gribanov <[email protected]>
8
@copyright Copyright (c) 2017, Peter Gribanov
9
@license   http://opensource.org/licenses/MIT
10
EOF;
11
12
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...
13
    ->setRules([
14
        '@Symfony' => true,
15
        'array_syntax' => [
16
            'syntax' => 'short',
17
        ],
18
        'header_comment' => [
19
            'commentType' => 'PHPDoc',
20
            'header' => $header,
21
        ],
22
        'class_definition' => [
23
            'multiLineExtendsEachSingleLine' => true,
24
        ],
25
        'no_superfluous_phpdoc_tags' => false,
26
        'blank_line_after_opening_tag' => false,
27
        'phpdoc_no_empty_return' => false,
28
        'yoda_style' => false,
29
        'ordered_imports' => [
30
            'sort_algorithm' => 'alpha',
31
        ],
32
    ])
33
    ->setFinder(
34
        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...
35
            ->in(__DIR__.'/src')
36
            ->in(__DIR__.'/tests')
37
            ->notPath('bootstrap.php')
38
    )
39
;
40