|
1 | 1 | <?php
|
| 2 | + |
| 3 | +use PhpCsFixer\Runner\Parallel\ParallelConfigFactory; |
| 4 | + |
2 | 5 | if (PHP_SAPI !== 'cli') {
|
3 | 6 | die('CLI only.');
|
4 | 7 | }
|
|
10 | 13 | return (new PhpCsFixer\Config())
|
11 | 14 | ->setRiskyAllowed(true)
|
12 | 15 | ->setUsingCache(false)
|
| 16 | + ->setParallelConfig(ParallelConfigFactory::detect()) |
13 | 17 | ->setFinder($finder)
|
14 | 18 | ->setRules([
|
15 | 19 | '@DoctrineAnnotation' => true,
|
16 |
| - '@PER' => true, |
| 20 | + '@PER-CS' => true, |
17 | 21 | 'array_syntax' => ['syntax' => 'short'],
|
18 | 22 | 'blank_line_after_opening_tag' => true,
|
19 | 23 | 'cast_spaces' => ['space' => 'none'],
|
20 |
| - 'compact_nullable_typehint' => true, |
| 24 | + 'compact_nullable_type_declaration' => true, |
21 | 25 | 'concat_space' => ['spacing' => 'one'],
|
22 | 26 | 'declare_parentheses' => true,
|
23 | 27 | 'declare_equal_normalize' => ['space' => 'none'],
|
24 | 28 | 'dir_constant' => true,
|
25 |
| - 'function_typehint_space' => true, |
26 | 29 | 'lowercase_cast' => true,
|
27 | 30 | 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
|
28 | 31 | 'modernize_types_casting' => true,
|
29 | 32 | 'native_function_casing' => true,
|
30 |
| - 'new_with_braces' => true, |
| 33 | + 'new_with_parentheses' => true, |
31 | 34 | 'no_alias_functions' => true,
|
32 | 35 | 'no_blank_lines_after_phpdoc' => true,
|
33 | 36 | 'no_empty_phpdoc' => true,
|
|
64 | 67 | 'single_space_around_construct' => true,
|
65 | 68 | 'single_line_comment_style' => ['comment_types' => ['hash']],
|
66 | 69 | 'single_trait_insert_per_statement' => true,
|
| 70 | + 'type_declaration_spaces' => true, |
67 | 71 | 'whitespace_after_comma_in_array' => true,
|
68 | 72 | 'header_comment' => [
|
69 | 73 | 'header' => 'This file belongs to the package "TYPO3 Fluid".' . chr(10) .
|
|
0 commit comments