|
1 | 1 | <?php |
2 | 2 |
|
3 | 3 | declare(strict_types=1); |
4 | | - |
5 | 4 | use PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FunctionCommentSniff; |
6 | | -use PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer; |
7 | | -use SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff; |
8 | | -use SlevomatCodingStandard\Sniffs\Namespaces\UseSpacingSniff; |
| 5 | +use PhpCsFixer\Fixer\ClassNotation\OrderedTypesFixer; |
| 6 | +use PhpCsFixer\Fixer\Phpdoc\PhpdocTypesOrderFixer; |
| 7 | +use SlevomatCodingStandard\Sniffs\Commenting\DocCommentSpacingSniff; |
9 | 8 | use SlevomatCodingStandard\Sniffs\Whitespaces\DuplicateSpacesSniff; |
10 | 9 | use Symplify\EasyCodingStandard\Config\ECSConfig; |
11 | 10 |
|
|
26 | 25 |
|
27 | 26 | // PHP-CS-Fixer |
28 | 27 | $ecsConfig->skip([ |
29 | | - // Allows tree building method chaining syntax for better readability |
30 | | - MethodChainingIndentationFixer::class => [$libRootPath . '/src/Parser/IsoParsers.php'], |
31 | | - |
32 | | - // Allows microtime() to be called from class namespace so that it can be overridden |
33 | | - // and its return value mocked in SystemClockTest |
34 | | - ReferenceUsedNamesOnlySniff::class => [$libRootPath . '/src/Clock/SystemClock.php'], |
35 | | - |
36 | 28 | // Only interested in FunctionCommentSniff.ParamCommentFullStop, excludes the rest |
37 | 29 | FunctionCommentSniff::class . '.Missing' => null, |
38 | 30 | FunctionCommentSniff::class . '.MissingReturn' => null, |
|
47 | 39 | // Allows alignment in test providers |
48 | 40 | DuplicateSpacesSniff::class => [$libRootPath . '/tests'], |
49 | 41 |
|
50 | | - // Keep a line between same use types, spacing around uses is done in other fixers |
51 | | - UseSpacingSniff::class . '.IncorrectLinesCountBeforeFirstUse' => null, |
52 | | - UseSpacingSniff::class . '.IncorrectLinesCountAfterLastUse' => null, |
| 42 | + OrderedTypesFixer::class => null, |
| 43 | + PhpdocTypesOrderFixer::class => null, |
| 44 | + |
| 45 | + DocCommentSpacingSniff::class . '.IncorrectAnnotationsGroup' => null, |
53 | 46 | ]); |
54 | 47 | }; |
0 commit comments