|
3 | 3 | declare(strict_types=1);
|
4 | 4 |
|
5 | 5 | use Hereldar\CodingStyle\Rules\ClarifyingParenthesesAroundComparisonsFixer;
|
6 |
| -use Hereldar\CodingStyle\Rules\GlobalNamespaceImportFixer; |
7 | 6 | use Hereldar\CodingStyle\Rules\MultilineWhitespaceBeforeDoubleColonFixer;
|
8 | 7 | use PhpCsFixer\Fixer\Basic\SingleLineEmptyBodyFixer;
|
9 | 8 | use PhpCsFixer\Fixer\ClassNotation\SelfStaticAccessorFixer;
|
|
12 | 11 | use PhpCsFixer\Fixer\ControlStructure\SimplifiedIfReturnFixer;
|
13 | 12 | use PhpCsFixer\Fixer\LanguageConstruct\CombineConsecutiveIssetsFixer;
|
14 | 13 | use PhpCsFixer\Fixer\LanguageConstruct\CombineConsecutiveUnsetsFixer;
|
15 |
| -use PhpCsFixer\Fixer\Operator\OperatorLinebreakFixer; |
16 |
| -use PhpCsFixer\Fixer\Phpdoc\PhpdocAlignFixer; |
17 |
| -use PhpCsFixer\Fixer\Phpdoc\PhpdocNoAliasTagFixer; |
18 | 14 | use PhpCsFixer\Fixer\Phpdoc\PhpdocOrderByValueFixer;
|
19 |
| -use PhpCsFixer\Fixer\Phpdoc\PhpdocSeparationFixer; |
20 |
| -use PhpCsFixer\Fixer\Phpdoc\PhpdocToCommentFixer; |
21 | 15 | use PhpCsFixer\Fixer\PhpUnit\PhpUnitDedicateAssertFixer;
|
22 | 16 | use PhpCsFixer\Fixer\PhpUnit\PhpUnitDedicateAssertInternalTypeFixer;
|
23 | 17 | use PhpCsFixer\Fixer\PhpUnit\PhpUnitExpectationFixer;
|
24 | 18 | use PhpCsFixer\Fixer\StringNotation\ExplicitStringVariableFixer;
|
25 |
| -use PhpCsFixer\Fixer\StringNotation\StringImplicitBackslashesFixer; |
26 | 19 | use PhpCsFixer\Fixer\Whitespace\ArrayIndentationFixer;
|
27 | 20 | use PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer;
|
28 | 21 | use Symplify\CodingStandard\Fixer\Strict\BlankLineAfterStrictTypesFixer;
|
|
58 | 51 | SimplifiedIfReturnFixer::class,
|
59 | 52 | SingleLineEmptyBodyFixer::class,
|
60 | 53 | ])
|
61 |
| - ->withConfiguredRule( |
62 |
| - GlobalNamespaceImportFixer::class, |
63 |
| - ['import_classes' => true, 'import_constants' => false, 'import_functions' => false], |
64 |
| - ) |
65 |
| - ->withConfiguredRule( |
66 |
| - OperatorLinebreakFixer::class, |
67 |
| - ['position' => 'beginning'], |
68 |
| - ) |
69 |
| - ->withConfiguredRule( |
70 |
| - PhpdocAlignFixer::class, |
71 |
| - ['align' => 'left'], |
72 |
| - ) |
73 |
| - ->withConfiguredRule( |
74 |
| - PhpdocNoAliasTagFixer::class, |
75 |
| - ['replacements' => ['type' => 'var', 'link' => 'see']], |
76 |
| - ) |
77 |
| - ->withConfiguredRule( |
78 |
| - PhpdocSeparationFixer::class, |
79 |
| - ['groups' => [ |
80 |
| - ['deprecated', 'link', 'see', 'since'], |
81 |
| - ['author', 'copyright', 'license'], |
82 |
| - ['category', 'package', 'subpackage'], |
83 |
| - ['property', 'property-read', 'property-write', 'phpstan-property', 'phpstan-property-read', 'phpstan-property-write', 'psalm-property', 'psalm-property-read', 'psalm-property-write'], |
84 |
| - ['pure', 'phpstan-pure', 'psalm-pure'], |
85 |
| - ['param', 'phpstan-param', 'psalm-param'], |
86 |
| - ['return', 'phpstan-return', 'psalm-return'], |
87 |
| - ['throws', 'phpstan-throws', 'psalm-throws'], |
88 |
| - ]], |
89 |
| - ) |
90 |
| - ->withConfiguredRule( |
91 |
| - PhpdocToCommentFixer::class, |
92 |
| - ['ignored_tags' => ['var', 'phpstan-var', 'psalm-var', 'phpstan-ignore-next-line', 'psalm-suppress']], |
93 |
| - ) |
94 |
| - ->withConfiguredRule( |
95 |
| - StringImplicitBackslashesFixer::class, |
96 |
| - ['single_quoted' => 'ignore'], |
97 |
| - ) |
98 | 54 | ->withSpacing(
|
99 | 55 | indentation: ECS::INDENTATION_SPACES,
|
100 | 56 | lineEnding: PHP_EOL
|
|
0 commit comments