|
| 1 | +<?php |
| 2 | + |
| 3 | +declare(strict_types=1); |
| 4 | + |
| 5 | +$finder = (new PhpCsFixer\Finder()) |
| 6 | + ->in(['src', 'tests']); |
| 7 | + |
| 8 | +return (new PhpCsFixer\Config()) |
| 9 | + ->setCacheFile('var/.php-cs-fixer.cache') |
| 10 | + ->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect()) |
| 11 | + ->setRiskyAllowed(true) |
| 12 | + ->setRules([ |
| 13 | + '@PhpCsFixer' => true, |
| 14 | + '@Symfony' => true, |
| 15 | + '@PER-CS2.0' => true, |
| 16 | + 'binary_operator_spaces' => false, |
| 17 | + 'cast_spaces' => true, |
| 18 | + 'concat_space' => ['spacing' => 'one'], |
| 19 | + 'declare_strict_types' => true, |
| 20 | + 'global_namespace_import' => [ |
| 21 | + 'import_classes' => true, |
| 22 | + 'import_constants' => null, |
| 23 | + 'import_functions' => null, |
| 24 | + ], |
| 25 | + 'multiline_whitespace_before_semicolons' => false, |
| 26 | + 'phpdoc_align' => ['align' => 'left'], |
| 27 | + 'phpdoc_order' => true, |
| 28 | + 'phpdoc_to_comment' => false, |
| 29 | + 'php_unit_test_class_requires_covers' => false, |
| 30 | + 'single_line_throw' => false, |
| 31 | + 'trailing_comma_in_multiline' => [ |
| 32 | + 'elements' => ['arrays', 'arguments', 'parameters'], |
| 33 | + ], |
| 34 | + 'void_return' => true, |
| 35 | + 'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false], |
| 36 | + ]) |
| 37 | + ->setFinder($finder); |
0 commit comments