|
3 | 3 | declare(strict_types=1); |
4 | 4 |
|
5 | 5 | use PHP_CodeSniffer\Standards\Squiz\Sniffs\Commenting\FunctionCommentSniff; |
6 | | -use PhpCsFixer\Fixer\Whitespace\MethodChainingIndentationFixer; |
7 | | -use SlevomatCodingStandard\Sniffs\Namespaces\ReferenceUsedNamesOnlySniff; |
| 6 | +use PhpCsFixer\Fixer\ClassNotation\OrderedTypesFixer; |
| 7 | +use PhpCsFixer\Fixer\Phpdoc\PhpdocTypesOrderFixer; |
8 | 8 | use SlevomatCodingStandard\Sniffs\Namespaces\UseSpacingSniff; |
9 | 9 | use SlevomatCodingStandard\Sniffs\Whitespaces\DuplicateSpacesSniff; |
10 | 10 | use Symplify\EasyCodingStandard\Config\ECSConfig; |
|
26 | 26 |
|
27 | 27 | // PHP-CS-Fixer |
28 | 28 | $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 | 29 | // Only interested in FunctionCommentSniff.ParamCommentFullStop, excludes the rest |
37 | 30 | FunctionCommentSniff::class . '.Missing' => null, |
38 | 31 | FunctionCommentSniff::class . '.MissingReturn' => null, |
|
50 | 43 | // Keep a line between same use types, spacing around uses is done in other fixers |
51 | 44 | UseSpacingSniff::class . '.IncorrectLinesCountBeforeFirstUse' => null, |
52 | 45 | UseSpacingSniff::class . '.IncorrectLinesCountAfterLastUse' => null, |
| 46 | + |
| 47 | + OrderedTypesFixer::class => null, |
| 48 | + PhpdocTypesOrderFixer::class => null, |
53 | 49 | ]); |
54 | 50 | }; |
0 commit comments