Passed
Push — development ( 07d7f4...9799bf )
by Carlos C
02:25
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())
1 ignored issue
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-fixer.cache')
15
    ->setRules([
16
        '@PSR12' => true,
17
        '@PSR12:risky' => true,
18
        '@PHP71Migration:risky' => true,
19
        'void_return' => false,
20
        '@PHP73Migration' => true,
21
        // symfony
22
        'class_attributes_separation' => true,
23
        'whitespace_after_comma_in_array' => true,
24
        'no_empty_statement' => true,
25
        'no_extra_blank_lines' => true,
26
        'function_typehint_space' => true,
27
        'no_blank_lines_after_phpdoc' => true,
28
        'object_operator_without_whitespace' => true,
29
        'binary_operator_spaces' => true,
30
        'phpdoc_scalar' => true,
31
        'no_trailing_comma_in_singleline_array' => true,
32
        'single_quote' => true,
33
        'no_singleline_whitespace_before_semicolons' => true,
34
        'no_unused_imports' => true,
35
        'yoda_style' => ['equal' => true, 'identical' => true, 'less_and_greater' => null],
36
        'standardize_not_equals' => true,
37
        'concat_space' => ['spacing' => 'one'],
38
        'linebreak_after_opening_tag' => true,
39
        // symfony:risky
40
        'no_alias_functions' => true,
41
        'self_accessor' => true,
42
        // contrib
43
        'not_operator_with_successor_space' => true,
44
    ])
45
    ->setFinder(
46
        PhpCsFixer\Finder::create()
1 ignored issue
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...
47
            ->in(__DIR__)
48
            ->append([__FILE__])
49
            ->exclude(['tools', 'vendor', 'build'])
50
    )
51
;
52