Passed
Push — master ( 2b0e69...0701c6 )
by Luis
39s queued 11s
created

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

Labels
Severity
1
<?php
2
/**
3
 * PHP version 7.1
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
        '@PSR2' => 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
    ])
33
    ->setFinder($finder);
34