Code Duplication    Length = 4-5 lines in 2 locations

src/Utils/Formatter.php 2 locations

@@ 391-394 (lines=4) @@
388
                    $lineEnded = true;
389
                    array_push($blocksIndentation, $indent);
390
                    ++$indent;
391
                } elseif ($curr->type === Token::TYPE_KEYWORD && $curr->value === 'END') {
392
                    $lineEnded = true;
393
                    $indent = array_pop($blocksIndentation);
394
                }
395
396
                // Formatting fragments delimited by comma.
397
                if ($prev->type === Token::TYPE_OPERATOR && $prev->value === ',') {
@@ 424-428 (lines=5) @@
421
                        $shortGroup = false;
422
                    }
423
                    array_push($blocksLineEndings, $lineEnded);
424
                } elseif ($curr->type === Token::TYPE_OPERATOR && $curr->value === ')') {
425
                    $indent = array_pop($blocksIndentation);
426
                    $lineEnded |= array_pop($blocksLineEndings);
427
                    $shortGroup = false;
428
                }
429
430
                // Adding the token.
431
                $ret .= $this->toString($prev);