Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

@@ 880-885 (lines=6) @@
877
                break;
878
            case T_SELF:
879
            case T_PARENT:
880
            case T_STATIC:
881
                // Self is valid, the others invalid, but were probably intended as type hints.
882
                if ($defaultStart === null) {
883
                    $typeHint = $tokens[$i]['content'];
884
                }
885
                break;
886
            case T_STRING:
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.
@@ 915-920 (lines=6) @@
912
                    $typeHint .= $tokens[$i]['content'];
913
                }
914
                break;
915
            case T_NS_SEPARATOR:
916
                // Part of a type hint or default value.
917
                if ($defaultStart === null) {
918
                    $typeHint .= $tokens[$i]['content'];
919
                }
920
                break;
921
            case T_INLINE_THEN:
922
                if ($defaultStart === null) {
923
                    $nullableType = true;