Issues (5)

.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
$rules = [
13
    '@Symfony' => true,
14
    'array_syntax' => [
15
        'syntax' => 'short',
16
    ],
17
    'header_comment' => [
18
        'comment_type' => 'PHPDoc',
19
        'header' => $header,
20
    ],
21
    'no_superfluous_phpdoc_tags' => false,
22
    'blank_line_after_opening_tag' => false,
23
    'phpdoc_no_empty_return' => false,
24
    'yoda_style' => false,
25
    'ordered_imports' => [
26
        'sort_algorithm' => 'alpha',
27
    ],
28
];
29
30
$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...
31
    ->in(__DIR__.'/src')
32
    ->in(__DIR__.'/tests')
33
    ->notPath('bootstrap.php')
34
;
35
36
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...
37
    ->setRules($rules)
38
    ->setFinder($finder)
39
    ->setUsingCache(true)
40
;
41