Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 982-987 (lines=6) @@
979
                break;
980
            case T_SELF:
981
            case T_PARENT:
982
            case T_STATIC:
983
                // Self is valid, the others invalid, but were probably intended as type hints.
984
                if ($defaultStart === null) {
985
                    $typeHint = $tokens[$i]['content'];
986
                }
987
                break;
988
            case T_STRING:
989
                // This is a string, so it may be a type hint, but it could
990
                // also be a constant used as a default value.
@@ 1017-1022 (lines=6) @@
1014
                    $typeHint .= $tokens[$i]['content'];
1015
                }
1016
                break;
1017
            case T_NS_SEPARATOR:
1018
                // Part of a type hint or default value.
1019
                if ($defaultStart === null) {
1020
                    $typeHint .= $tokens[$i]['content'];
1021
                }
1022
                break;
1023
            case T_INLINE_THEN:
1024
                if ($defaultStart === null) {
1025
                    $nullableType = true;