Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1057-1062 (lines=6) @@
1054
                break;
1055
            case T_SELF:
1056
            case T_PARENT:
1057
            case T_STATIC:
1058
                // Self is valid, the others invalid, but were probably intended as type hints.
1059
                if ($defaultStart === null) {
1060
                    $typeHint = $tokens[$i]['content'];
1061
                }
1062
                break;
1063
            case T_STRING:
1064
                // This is a string, so it may be a type hint, but it could
1065
                // also be a constant used as a default value.
@@ 1092-1097 (lines=6) @@
1089
                    $typeHint .= $tokens[$i]['content'];
1090
                }
1091
                break;
1092
            case T_NS_SEPARATOR:
1093
                // Part of a type hint or default value.
1094
                if ($defaultStart === null) {
1095
                    $typeHint .= $tokens[$i]['content'];
1096
                }
1097
                break;
1098
            case T_INLINE_THEN:
1099
                if ($defaultStart === null) {
1100
                    $nullableType = true;