Code Duplication    Length = 4-5 lines in 2 locations

src/Utils/Formatter.php 2 locations

@@ 413-416 (lines=4) @@
410
                    $lineEnded = true;
411
                    array_push($blocksIndentation, $indent);
412
                    ++$indent;
413
                } elseif (($curr->type === Token::TYPE_KEYWORD) && ($curr->value === 'END')) {
414
                    $lineEnded = true;
415
                    $indent = array_pop($blocksIndentation);
416
                }
417
418
                // Formatting fragments delimited by comma.
419
                if (($prev->type === Token::TYPE_OPERATOR) && ($prev->value === ',')) {
@@ 444-448 (lines=5) @@
441
                        $shortGroup = false;
442
                    }
443
                    array_push($blocksLineEndings, $lineEnded);
444
                } elseif (($curr->type === Token::TYPE_OPERATOR) && ($curr->value === ')')) {
445
                    $indent = array_pop($blocksIndentation);
446
                    $lineEnded |= array_pop($blocksLineEndings);
447
                    $shortGroup = false;
448
                }
449
450
                // Delimiter must be placed on the same line with the last
451
                // clause.