Code Duplication    Length = 6-6 lines in 2 locations

Sniff.php 2 locations

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