phpcfdi /
cfditopdf
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * @noinspection PhpUndefinedClassInspection |
||
| 5 | * @noinspection PhpUndefinedNamespaceInspection |
||
| 6 | * @see https://cs.symfony.com/doc/ruleSets/ |
||
| 7 | * @see https://cs.symfony.com/doc/rules/ |
||
| 8 | */ |
||
| 9 | |||
| 10 | declare(strict_types=1); |
||
| 11 | |||
| 12 | return (new PhpCsFixer\Config()) |
||
|
0 ignored issues
–
show
|
|||
| 13 | ->setRiskyAllowed(true) |
||
| 14 | ->setCacheFile(__DIR__ . '/build/php-cs-fixer.cache') |
||
| 15 | ->setRules([ |
||
| 16 | '@PSR12' => true, |
||
| 17 | '@PSR12:risky' => true, |
||
| 18 | '@PHP71Migration:risky' => true, |
||
| 19 | '@PHP73Migration' => true, |
||
| 20 | // basic |
||
| 21 | 'statement_indentation' => false, // invalid indentation |
||
| 22 | // symfony |
||
| 23 | 'class_attributes_separation' => true, |
||
| 24 | 'whitespace_after_comma_in_array' => true, |
||
| 25 | 'no_empty_statement' => true, |
||
| 26 | 'no_extra_blank_lines' => true, |
||
| 27 | 'type_declaration_spaces' => true, |
||
| 28 | 'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['arrays', 'arguments']], |
||
| 29 | 'new_with_parentheses' => true, |
||
| 30 | 'no_blank_lines_after_class_opening' => true, |
||
| 31 | 'no_blank_lines_after_phpdoc' => true, |
||
| 32 | 'object_operator_without_whitespace' => true, |
||
| 33 | 'binary_operator_spaces' => true, |
||
| 34 | 'phpdoc_scalar' => true, |
||
| 35 | 'no_trailing_comma_in_singleline' => true, |
||
| 36 | 'single_quote' => true, |
||
| 37 | 'blank_lines_before_namespace' => true, |
||
| 38 | 'no_singleline_whitespace_before_semicolons' => true, |
||
| 39 | 'no_unused_imports' => true, |
||
| 40 | 'yoda_style' => ['equal' => true, 'identical' => true, 'less_and_greater' => null], |
||
| 41 | 'standardize_not_equals' => true, |
||
| 42 | 'concat_space' => ['spacing' => 'one'], |
||
| 43 | 'linebreak_after_opening_tag' => true, |
||
| 44 | // symfony:risky |
||
| 45 | 'no_alias_functions' => true, |
||
| 46 | 'self_accessor' => true, |
||
| 47 | // contrib |
||
| 48 | 'not_operator_with_successor_space' => true, |
||
| 49 | 'ordered_imports' => ['imports_order' => ['class', 'function', 'const']], // @PSR12 sort_algorithm: none |
||
| 50 | ]) |
||
| 51 | ->setFinder( |
||
| 52 | 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 53 | ->in(__DIR__) |
||
| 54 | ->append([__FILE__]) |
||
| 55 | ->exclude(['vendor', 'tools', 'build']), |
||
| 56 | ) |
||
| 57 | ; |
||
| 58 |
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