rhertogh /
yii2-security.txt
| 1 | <?php |
||
| 2 | |||
| 3 | $finder = PhpCsFixer\Finder::create() |
||
|
0 ignored issues
–
show
|
|||
| 4 | ->in([ |
||
| 5 | __DIR__ . '/sample', |
||
| 6 | __DIR__ . '/src', |
||
| 7 | __DIR__ . '/tests', |
||
| 8 | ]) |
||
| 9 | ->exclude([ |
||
| 10 | 'runtime', |
||
| 11 | '_runtime', |
||
| 12 | 'web/assets', |
||
| 13 | ]) |
||
| 14 | ->notPath(); |
||
| 15 | |||
| 16 | $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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 17 | |||
| 18 | return $config |
||
| 19 | ->setFinder($finder) |
||
| 20 | ->setRules([ |
||
| 21 | '@PSR12' => true, |
||
| 22 | 'function_declaration' => false, |
||
| 23 | 'new_with_braces' => [ |
||
| 24 | 'anonymous_class' => false, |
||
| 25 | ], |
||
| 26 | ]); |
||
| 27 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths