|
1 | 1 | <?php |
2 | 2 |
|
3 | | -$header = <<<EOF |
| 3 | +/* |
| 4 | + * This file is part of the Relazy package. |
| 5 | + * |
| 6 | + * (c) Christian Gripp <mail@core23.de> |
| 7 | + * |
| 8 | + * For the full copyright and license information, please view the LICENSE |
| 9 | + * file that was distributed with this source code. |
| 10 | + */ |
| 11 | + |
| 12 | +$header = <<<'EOF' |
4 | 13 | This file is part of the Relazy package. |
5 | 14 |
|
6 | 15 | (c) Christian Gripp <mail@core23.de> |
|
10 | 19 | EOF; |
11 | 20 |
|
12 | 21 | $finder = PhpCsFixer\Finder::create() |
13 | | - ->in([ __DIR__.'/src', __DIR__.'/tests']) |
| 22 | + ->in([__DIR__.'/src', __DIR__.'/tests']) |
14 | 23 | ; |
15 | 24 |
|
16 | | -$config = (new PhpCsFixer\Config()) |
| 25 | +return (new PhpCsFixer\Config()) |
17 | 26 | ->setRiskyAllowed(true) |
18 | 27 | ->setRules([ |
19 | | - '@Symfony' => true, |
20 | | - '@Symfony:risky' => true, |
21 | | - '@PhpCsFixer' => true, |
22 | | - '@PhpCsFixer:risky' => true, |
23 | | - '@PHP70Migration' => true, |
| 28 | + '@Symfony' => true, |
| 29 | + '@Symfony:risky' => true, |
| 30 | + '@PhpCsFixer' => true, |
| 31 | + '@PhpCsFixer:risky' => true, |
| 32 | + '@PHP70Migration' => true, |
24 | 33 | '@PHPUnit60Migration:risky' => true, |
25 | | - 'header_comment' => [ |
| 34 | + 'header_comment' => [ |
26 | 35 | 'header' => $header, |
27 | 36 | ], |
28 | 37 | 'list_syntax' => [ |
|
31 | 40 | 'binary_operator_spaces' => [ |
32 | 41 | 'default' => 'align', |
33 | 42 | ], |
34 | | - 'method_chaining_indentation' => false, |
| 43 | + 'method_chaining_indentation' => false, |
| 44 | + 'multiline_whitespace_before_semicolons' => [ |
| 45 | + 'strategy' => 'new_line_for_chained_calls', |
| 46 | + ], |
35 | 47 | 'phpdoc_types_order' => [ |
36 | 48 | 'null_adjustment' => 'always_last', |
37 | 49 | ], |
38 | | - 'php_unit_internal_class' => false, |
| 50 | + 'php_unit_internal_class' => false, |
39 | 51 | 'php_unit_test_class_requires_covers' => false, |
40 | | - 'no_superfluous_phpdoc_tags' => [ |
41 | | - 'allow_mixed' => true, |
| 52 | + 'no_superfluous_phpdoc_tags' => [ |
| 53 | + 'allow_mixed' => true, |
42 | 54 | 'remove_inheritdoc' => true, |
43 | 55 | ], |
44 | | - 'static_lambda' => true, |
| 56 | + 'static_lambda' => true, |
45 | 57 | 'global_namespace_import' => [ |
46 | | - 'import_classes' => true, |
47 | | - 'import_constants' => false, |
48 | | - 'import_functions' => false, |
| 58 | + 'import_classes' => true, |
| 59 | + 'import_constants' => false, |
| 60 | + 'import_functions' => false, |
| 61 | + ], |
| 62 | + 'phpdoc_to_comment' => [ |
| 63 | + 'ignored_tags' => ['psalm-suppress'], |
49 | 64 | ], |
50 | 65 | ]) |
51 | 66 | ->setFinder($finder) |
52 | 67 | ; |
53 | | - |
54 | | -return $config; |
|
0 commit comments