Issues (222)

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

Labels
Severity
1
<?php declare(strict_types=1);
2
/**
3
 * This source file is subject to the license that is bundled with this package in the file LICENSE.
4
 */
5
6
$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...
7
    ->in([__DIR__ . '/src']);
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
11
return $config->setRules([
12
        '@PSR12' => true,
13
        'no_unused_imports' => true,
14
        'array_syntax' => ['syntax' => 'short'],
15
        'single_blank_line_before_namespace' => true,
16
        'ordered_imports' => true,
17
        'single_quote' => true,
18
        'trailing_comma_in_multiline' => true,
19
        'concat_space' => ['spacing' => 'one'],
20
        'no_superfluous_phpdoc_tags' => true,
21
        'no_empty_phpdoc' => true,
22
        'no_empty_statement' => true,
23
        'array_indentation' => true,
24
        'combine_consecutive_issets' => true,
25
        'combine_consecutive_unsets' => true,
26
        'no_whitespace_in_blank_line' => true,
27
        'class_attributes_separation' => ['elements' => ['const' => 'one', 'method' => 'one', 'property' => 'one']],
28
        'cast_spaces' => ['space' => 'single'],
29
        'single_blank_line_at_eof' => true,
30
        'not_operator_with_successor_space' => true,
31
        'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
32
        'return_type_declaration' => ['space_before' => 'none'],
33
        'modernize_types_casting' => true,
34
        'blank_line_after_opening_tag' => false,
35
        'declare_strict_types' => true,
36
        'header_comment' => [
37
            'header' => 'This source file is subject to the license that is bundled with this package in the file LICENSE.',
38
            'comment_type' => 'PHPDoc',
39
            'location' => 'after_declare_strict',
40
            'separate' => 'bottom'
41
        ],
42
    ])
43
    ->setRiskyAllowed(true)
44
    ->setFinder($finder);
45