Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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