Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 880-885 (lines=6) @@
877
                // This is a string, so it may be a type hint, but it could
878
                // also be a constant used as a default value.
879
                $prevComma = false;
880
                for ($t = $i; $t >= $opener; $t--) {
881
                    if ($tokens[$t]['code'] === T_COMMA) {
882
                        $prevComma = $t;
883
                        break;
884
                    }
885
                }
886
887
                if ($prevComma !== false) {
888
                    $nextEquals = false;
@@ 889-894 (lines=6) @@
886
887
                if ($prevComma !== false) {
888
                    $nextEquals = false;
889
                    for ($t = $prevComma; $t < $i; $t++) {
890
                        if ($tokens[$t]['code'] === T_EQUAL) {
891
                            $nextEquals = $t;
892
                            break;
893
                        }
894
                    }
895
896
                    if ($nextEquals !== false) {
897
                        break;