@@ -383,7 +383,10 @@ static function (array $values) use ($builtIns): bool {
383
383
'method_private ' ,
384
384
])
385
385
->getOption (),
386
- (new FixerOptionBuilder ('sort_algorithm ' , 'How multiple occurrences of same type statements should be sorted. ' ))
386
+ (new FixerOptionBuilder (
387
+ 'sort_algorithm ' ,
388
+ 'How multiple occurrences of same type statements should be sorted. '
389
+ ))
387
390
->setAllowedValues (self ::SUPPORTED_SORT_ALGORITHMS )
388
391
->setDefault (self ::SORT_NONE )
389
392
->getOption (),
@@ -540,7 +543,7 @@ private function findElementEnd(Tokens $tokens, int $index): int
540
543
$ index = $ tokens ->findBlockEnd (Tokens::BLOCK_TYPE_CURLY_BRACE , $ index );
541
544
}
542
545
543
- for (++$ index ; $ tokens [$ index ]->isWhitespace (" \t" ) || $ tokens [$ index ]->isComment (); $ index ++);
546
+ for (++$ index ; $ tokens [$ index ]->isWhitespace (" \t" ) || $ tokens [$ index ]->isComment (); $ index ++); // @codingStandardsIgnoreLine
544
547
545
548
$ index --;
546
549
@@ -569,7 +572,9 @@ private function sortElements(array $elements): array
569
572
$ getPositionType = function (array $ element ) use ($ phpunitPositions ): int {
570
573
$ type = $ element ['type ' ];
571
574
572
- if (in_array ($ type , ['method ' , 'magic ' , 'phpunit ' ], true ) && isset ($ this ->typePosition ["method: {$ element ['name ' ]}" ])) {
575
+ if (in_array ($ type , ['method ' , 'magic ' , 'phpunit ' ], true ) &&
576
+ isset ($ this ->typePosition ["method: {$ element ['name ' ]}" ])
577
+ ) {
573
578
return $ this ->typePosition ["method: {$ element ['name ' ]}" ];
574
579
}
575
580
@@ -617,7 +622,7 @@ private function sortElements(array $elements): array
617
622
* @param array{element: _ClassElement, position: int} $b
618
623
* @return -1|0|1
619
624
*/
620
- fn (array $ a , array $ b ): int => ($ a ['position ' ] === $ b ['position ' ]) ? $ this ->sortGroupElements ($ a ['element ' ], $ b ['element ' ]) : $ a ['position ' ] <=> $ b ['position ' ],
625
+ fn (array $ a , array $ b ): int => ($ a ['position ' ] === $ b ['position ' ]) ? $ this ->sortGroupElements ($ a ['element ' ], $ b ['element ' ]) : $ a ['position ' ] <=> $ b ['position ' ], // @codingStandardsIgnoreLine
621
626
);
622
627
}
623
628
0 commit comments