Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1044-1049 (lines=6) @@
1041
                break;
1042
            case T_SELF:
1043
            case T_PARENT:
1044
            case T_STATIC:
1045
                // Self is valid, the others invalid, but were probably intended as type hints.
1046
                if ($defaultStart === null) {
1047
                    $typeHint = $tokens[$i]['content'];
1048
                }
1049
                break;
1050
            case T_STRING:
1051
                // This is a string, so it may be a type hint, but it could
1052
                // also be a constant used as a default value.
@@ 1079-1084 (lines=6) @@
1076
                    $typeHint .= $tokens[$i]['content'];
1077
                }
1078
                break;
1079
            case T_NS_SEPARATOR:
1080
                // Part of a type hint or default value.
1081
                if ($defaultStart === null) {
1082
                    $typeHint .= $tokens[$i]['content'];
1083
                }
1084
                break;
1085
            case T_INLINE_THEN:
1086
                if ($defaultStart === null) {
1087
                    $nullableType = true;