Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 712-717 (lines=6) @@
709
                // This is a string, so it may be a type hint, but it could
710
                // also be a constant used as a default value.
711
                $prevComma = false;
712
                for ($t = $i; $t >= $opener; $t--) {
713
                    if ($tokens[$t]['code'] === T_COMMA) {
714
                        $prevComma = $t;
715
                        break;
716
                    }
717
                }
718
719
                if ($prevComma !== false) {
720
                    $nextEquals = false;
@@ 721-726 (lines=6) @@
718
719
                if ($prevComma !== false) {
720
                    $nextEquals = false;
721
                    for ($t = $prevComma; $t < $i; $t++) {
722
                        if ($tokens[$t]['code'] === T_EQUAL) {
723
                            $nextEquals = $t;
724
                            break;
725
                        }
726
                    }
727
728
                    if ($nextEquals !== false) {
729
                        break;