Code Duplication    Length = 7-7 lines in 2 locations

src/Tokenizer/Parser/LiteralString.php 1 location

@@ 53-59 (lines=7) @@
50
     *
51
     * @return array
52
     */
53
    protected static function getFunctionString($string, array &$matches)
54
    {
55
        return [
56
            Tokenizer::TOKEN_TYPE => Tokenizer::TOKEN_TYPE_RESERVED,
57
            Tokenizer::TOKEN_VALUE => \substr($string, 0, \strlen($matches[1]) - 1),
58
        ];
59
    }
60
61
    /**
62
     * @param Tokenizer $tokenizer

src/Tokenizer/Parser/Reserved.php 1 location

@@ 109-115 (lines=7) @@
106
     *
107
     * @return array
108
     */
109
    protected static function getStringTypeArray($type, $string, array &$matches)
110
    {
111
        return [
112
            Tokenizer::TOKEN_TYPE => $type,
113
            Tokenizer::TOKEN_VALUE => \substr($string, 0, \strlen($matches[1])),
114
        ];
115
    }
116
}
117