|
1 | 1 | <?php
|
2 | 2 | /*
|
3 | 3 | * This document has been generated with
|
4 |
| - * https://mlocati.github.io/php-cs-fixer-configurator/#version:2.17.3|configurator |
| 4 | + * https://mlocati.github.io/php-cs-fixer-configurator/#version:3.0.0|configurator |
5 | 5 | * you can change this configuration by importing this file.
|
6 | 6 | */
|
7 |
| -return PhpCsFixer\Config::create() |
| 7 | +$config = new PhpCsFixer\Config(); |
| 8 | + |
| 9 | +return $config |
8 | 10 | ->setRiskyAllowed(true)
|
9 | 11 | ->setRules([
|
10 | 12 | '@DoctrineAnnotation' => true,
|
11 |
| - '@PHP56Migration' => true, |
12 | 13 | '@PHP70Migration' => true,
|
13 | 14 | '@PHP71Migration' => true,
|
14 | 15 | '@PSR2' => true,
|
|
66 | 67 | 'no_alternative_syntax' => true,
|
67 | 68 | // Properties MUST not be explicitly initialized with `null` except when they have a type declaration (PHP 7.4).
|
68 | 69 | 'no_null_property_initialization' => true,
|
69 |
| - // Replaces short-echo `<?=` with long format `<?php echo` syntax. |
70 |
| - 'no_short_echo_tag' => true, |
71 | 70 | // Variables must be set `null` instead of using `(unset)` casting.
|
72 | 71 | 'no_unset_cast' => true,
|
73 | 72 | // There should not be an empty `return` statement at the end of a function.
|
|
84 | 83 | 'php_unit_internal_class' => true,
|
85 | 84 | // Enforce camel (or snake) case for PHPUnit test methods, following configuration.
|
86 | 85 | 'php_unit_method_casing' => true,
|
87 |
| - // Order `@covers` annotation of PHPUnit tests. |
88 |
| - 'php_unit_ordered_covers' => true, |
89 | 86 | // Adds a default `@coversNothing` annotation to PHPUnit test classes that have no `@covers*` annotation.
|
90 | 87 | 'php_unit_test_class_requires_covers' => true,
|
91 | 88 | // PHPDoc should contain `@param` for all params.
|
|
105 | 102 | // A return statement wishing to return `void` should not return `null`.
|
106 | 103 | 'simplified_null_return' => true,
|
107 | 104 | ])
|
108 |
| - ->setFinder(PhpCsFixer\Finder::create() |
| 105 | + ->setFinder( |
| 106 | + PhpCsFixer\Finder::create() |
109 | 107 | ->exclude('vendor')
|
110 | 108 | ->in(__DIR__)
|
111 | 109 | )
|
|
0 commit comments