Issues (9)

1
<?php
2
return PhpCsFixer\Config::create()
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...
3
    ->setUsingCache(false)
4
    ->setRiskyAllowed(true)
5
    ->setCacheFile(__DIR__ . '/.php_cs.cache')
6
    ->setRules([
7
        '@PSR1' => true,
8
        '@PSR2' => true,
9
        '@Symfony' => true,
10
        'psr4' => true,
11
        'yoda_style' => false,
12
        'array_syntax' => ['syntax' => 'short'],
13
        'list_syntax' => ['syntax' => 'short'],
14
        'concat_space' => ['spacing' => 'one'],
15
        'increment_style' => ['style' => 'post'],
16
        'declare_equal_normalize' => ['space' => 'single'],
17
        'no_short_echo_tag' => true,
18
        'protected_to_private' => false,
19
        'phpdoc_align' => false,
20
        'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
21
        'phpdoc_order' => true, // psr-5
22
        'phpdoc_no_empty_return' => false,
23
        'align_multiline_comment' => true, // psr-5
24
        'general_phpdoc_annotation_remove' => ['annotations' => ['author', 'package']],
25
    ])
26
    ->setFinder(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...
27
        ->in(__DIR__ . '/src')
28
        ->in(__DIR__ . '/tests')
29
        ->name('*.php')
30
        ->ignoreDotFiles(true)
31
        ->ignoreVCS(true));