Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 890-895 (lines=6) @@
887
                // This is a string, so it may be a type hint, but it could
888
                // also be a constant used as a default value.
889
                $prevComma = false;
890
                for ($t = $i; $t >= $opener; $t--) {
891
                    if ($tokens[$t]['code'] === T_COMMA) {
892
                        $prevComma = $t;
893
                        break;
894
                    }
895
                }
896
897
                if ($prevComma !== false) {
898
                    $nextEquals = false;
@@ 899-904 (lines=6) @@
896
897
                if ($prevComma !== false) {
898
                    $nextEquals = false;
899
                    for ($t = $prevComma; $t < $i; $t++) {
900
                        if ($tokens[$t]['code'] === T_EQUAL) {
901
                            $nextEquals = $t;
902
                            break;
903
                        }
904
                    }
905
906
                    if ($nextEquals !== false) {
907
                        break;