Code Duplication    Length = 4-5 lines in 2 locations

src/Utils/Formatter.php 2 locations

@@ 338-341 (lines=4) @@
335
                    $lineEnded = true;
336
                    array_push($blocksIndentation, $indent);
337
                    ++$indent;
338
                } elseif (($curr->type === Token::TYPE_KEYWORD) && ($curr->value === 'END')) {
339
                    $lineEnded = true;
340
                    $indent = array_pop($blocksIndentation);
341
                }
342
343
                // Formatting fragments delimited by comma.
344
                if (($prev->type === Token::TYPE_OPERATOR) && ($prev->value === ',')) {
@@ 369-373 (lines=5) @@
366
                        $shortGroup = false;
367
                    }
368
                    array_push($blocksLineEndings, $lineEnded);
369
                } elseif (($curr->type === Token::TYPE_OPERATOR) && ($curr->value === ')')) {
370
                    $indent = array_pop($blocksIndentation);
371
                    $lineEnded |= array_pop($blocksLineEndings);
372
                    $shortGroup = false;
373
                }
374
375
                // Delimiter must be placed on the same line with the last
376
                // clause.