Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 1019-1024 (lines=6) @@
1016
                break;
1017
            case T_SELF:
1018
            case T_PARENT:
1019
            case T_STATIC:
1020
                // Self is valid, the others invalid, but were probably intended as type hints.
1021
                if ($defaultStart === null) {
1022
                    $typeHint = $tokens[$i]['content'];
1023
                }
1024
                break;
1025
            case T_STRING:
1026
                // This is a string, so it may be a type hint, but it could
1027
                // also be a constant used as a default value.
@@ 1054-1059 (lines=6) @@
1051
                    $typeHint .= $tokens[$i]['content'];
1052
                }
1053
                break;
1054
            case T_NS_SEPARATOR:
1055
                // Part of a type hint or default value.
1056
                if ($defaultStart === null) {
1057
                    $typeHint .= $tokens[$i]['content'];
1058
                }
1059
                break;
1060
            case T_INLINE_THEN:
1061
                if ($defaultStart === null) {
1062
                    $nullableType = true;