Passed
Pull Request — master (#8)
by Luis
28:30 queued 13:28
created

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

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