Passed
Push — master ( 711516...23c4c2 )
by Fabio
05:40
created

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

Labels
Severity
1
<?php
2
3
$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...
4
	->exclude('build/')
5
	->exclude('docs/')
6
	->exclude('tests/')
7
	->exclude('vendor/')
8
	->in(__DIR__);
9
10
$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...
11
$config
12
	->setRiskyAllowed(true)
13
    ->setIndent("\t")
14
    ->setLineEnding("\n")
15
	->setRules([
16
		'@PSR2' => true,
17
		'align_multiline_comment' => true,
18
		'array_syntax' => ['syntax' => 'short'],
19
		'binary_operator_spaces' => true,
20
		'blank_line_after_namespace' => true,
21
		'blank_line_after_opening_tag' => true,
22
		'cast_spaces' => ['space' => 'single'],
23
		'combine_nested_dirname' => true,
24
		'concat_space' => ['spacing' => 'one'],
25
		'dir_constant' => true,
26
		'is_null' => true,
27
		'list_syntax' => ['syntax' => 'short'],
28
		'modernize_types_casting' => true,
29
		'no_alias_functions' => true,
30
		'no_null_property_initialization' => true,
31
		'no_whitespace_before_comma_in_array' => true,
32
		'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
33
		'phpdoc_order' => true,
34
		'phpdoc_scalar' => true,
35
		'phpdoc_types_order' => true,
36
		'psr_autoloading' => true,
37
		'ternary_operator_spaces' => true,
38
		'ternary_to_null_coalescing' => true,
39
		'trim_array_spaces' => true,
40
		'visibility_required' => true,
41
		'whitespace_after_comma_in_array' => true,
42
	])
43
	->setFinder($finder);
44
45
return $config;