Passed
Push — main ( c1247a...fd4290 )
by Carlos C
08:00 queued 12s
created

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

Labels
Severity
1
<?php
2
3
/**
4
 * @noinspection PhpUndefinedClassInspection
5
 * @noinspection PhpUndefinedNamespaceInspection
6
 * @see https://cs.symfony.com/doc/ruleSets/
7
 * @see https://cs.symfony.com/doc/rules/
8
 */
9
10
declare(strict_types=1);
11
12
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...
13
    ->setRiskyAllowed(true)
14
    ->setCacheFile(__DIR__ . '/build/php_cs.cache')
15
    ->setRules([
16
        '@PSR12' => true,
17
        '@PSR12:risky' => true,
18
        '@PHP71Migration:risky' => true,
19
        '@PHP73Migration' => true,
20
        // PSR12 (remove when php-cs-fixer reaches ^3.1.1)
21
        'class_definition' => ['space_before_parenthesis' => true],
22
        // symfony
23
        'class_attributes_separation' => true,
24
        'whitespace_after_comma_in_array' => true,
25
        'no_empty_statement' => true,
26
        'no_extra_blank_lines' => true,
27
        'function_typehint_space' => true,
28
        'no_blank_lines_after_phpdoc' => true,
29
        'object_operator_without_whitespace' => true,
30
        'binary_operator_spaces' => true,
31
        'phpdoc_scalar' => true,
32
        'no_trailing_comma_in_singleline_array' => true,
33
        'single_quote' => true,
34
        'no_singleline_whitespace_before_semicolons' => true,
35
        'no_unused_imports' => true,
36
        'yoda_style' => ['equal' => true, 'identical' => true, 'less_and_greater' => null],
37
        'standardize_not_equals' => true,
38
        'concat_space' => ['spacing' => 'one'],
39
        'linebreak_after_opening_tag' => true,
40
        // symfony:risky
41
        'no_alias_functions' => true,
42
        'self_accessor' => true,
43
        // contrib
44
        'not_operator_with_successor_space' => true,
45
    ])
46
    ->setFinder(
47
        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...
48
            ->in(__DIR__)
49
            ->append([__FILE__])
50
            ->exclude(['vendor', 'tools', 'build'])
51
    )
52
;
53