Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 775-780 (lines=6) @@
772
                // This is a string, so it may be a type hint, but it could
773
                // also be a constant used as a default value.
774
                $prevComma = false;
775
                for ($t = $i; $t >= $opener; $t--) {
776
                    if ($tokens[$t]['code'] === T_COMMA) {
777
                        $prevComma = $t;
778
                        break;
779
                    }
780
                }
781
782
                if ($prevComma !== false) {
783
                    $nextEquals = false;
@@ 784-789 (lines=6) @@
781
782
                if ($prevComma !== false) {
783
                    $nextEquals = false;
784
                    for ($t = $prevComma; $t < $i; $t++) {
785
                        if ($tokens[$t]['code'] === T_EQUAL) {
786
                            $nextEquals = $t;
787
                            break;
788
                        }
789
                    }
790
791
                    if ($nextEquals !== false) {
792
                        break;