|
1 | 1 | <?php declare(strict_types=1);
|
2 | 2 |
|
| 3 | +use PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff; |
3 | 4 | use PhpCsFixer\Fixer\Basic\NonPrintableCharacterFixer;
|
4 | 5 | use PhpCsFixer\Fixer\CastNotation\ModernizeTypesCastingFixer;
|
5 | 6 | use PhpCsFixer\Fixer\ClassNotation\ClassAttributesSeparationFixer;
|
|
20 | 21 | use PhpCsFixer\Fixer\Phpdoc\PhpdocAnnotationWithoutDotFixer;
|
21 | 22 | use PhpCsFixer\Fixer\Phpdoc\PhpdocIndentFixer;
|
22 | 23 | use PhpCsFixer\Fixer\Phpdoc\PhpdocLineSpanFixer;
|
| 24 | +use PhpCsFixer\Fixer\Phpdoc\PhpdocNoPackageFixer; |
23 | 25 | use PhpCsFixer\Fixer\Phpdoc\PhpdocOrderFixer;
|
24 | 26 | use PhpCsFixer\Fixer\Phpdoc\PhpdocSummaryFixer;
|
| 27 | +use PhpCsFixer\Fixer\Phpdoc\PhpdocToCommentFixer; |
25 | 28 | use PhpCsFixer\Fixer\Phpdoc\PhpdocTrimConsecutiveBlankLineSeparationFixer;
|
26 | 29 | use PhpCsFixer\Fixer\PhpTag\BlankLineAfterOpeningTagFixer;
|
27 | 30 | use PhpCsFixer\Fixer\PhpUnit\PhpUnitConstructFixer;
|
|
36 | 39 | use PhpCsFixer\Fixer\StringNotation\SingleQuoteFixer;
|
37 | 40 | use PhpCsFixer\Fixer\Whitespace\BlankLineBeforeStatementFixer;
|
38 | 41 | use PhpCsFixer\Fixer\Whitespace\CompactNullableTypehintFixer;
|
39 |
| -use PhpCsFixer\Fixer\Phpdoc\PhpdocToCommentFixer; |
40 | 42 | use PhpCsFixerCustomFixers\Fixer\NoImportFromGlobalNamespaceFixer;
|
41 | 43 | use PhpCsFixerCustomFixers\Fixer\NoSuperfluousConcatenationFixer;
|
42 | 44 | use PhpCsFixerCustomFixers\Fixer\NoUselessCommentFixer;
|
|
49 | 51 | use Symplify\EasyCodingStandard\Config\ECSConfig;
|
50 | 52 | use Symplify\EasyCodingStandard\ValueObject\Option;
|
51 | 53 | use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
|
52 |
| -use PHP_CodeSniffer\Standards\Generic\Sniffs\CodeAnalysis\AssignmentInConditionSniff; |
53 | 54 |
|
54 | 55 | return static function (ECSConfig $ecsConfig): void {
|
55 | 56 | $ecsConfig->sets([
|
|
133 | 134 | // would otherwise destroy markdown in the description of a route annotation, since markdown interpreted spaces/indents
|
134 | 135 | PhpdocIndentFixer::class => [
|
135 | 136 | 'src/**/*Controller.php',
|
136 |
| - 'src/**/*Route.php' |
| 137 | + 'src/**/*Route.php', |
137 | 138 | ],
|
138 | 139 | // would otherwise remove lines in the description of route annotations
|
139 | 140 | PhpdocTrimConsecutiveBlankLineSeparationFixer::class => [
|
140 | 141 | 'src/**/*Controller.php',
|
141 |
| - 'src/**/*Route.php' |
| 142 | + 'src/**/*Route.php', |
142 | 143 | ],
|
| 144 | + PhpdocNoPackageFixer::class => null, |
143 | 145 | ]);
|
144 | 146 | };
|
0 commit comments