Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 862-867 (lines=6) @@
859
                // This is a string, so it may be a type hint, but it could
860
                // also be a constant used as a default value.
861
                $prevComma = false;
862
                for ($t = $i; $t >= $opener; $t--) {
863
                    if ($tokens[$t]['code'] === T_COMMA) {
864
                        $prevComma = $t;
865
                        break;
866
                    }
867
                }
868
869
                if ($prevComma !== false) {
870
                    $nextEquals = false;
@@ 871-876 (lines=6) @@
868
869
                if ($prevComma !== false) {
870
                    $nextEquals = false;
871
                    for ($t = $prevComma; $t < $i; $t++) {
872
                        if ($tokens[$t]['code'] === T_EQUAL) {
873
                            $nextEquals = $t;
874
                            break;
875
                        }
876
                    }
877
878
                    if ($nextEquals !== false) {
879
                        break;