Code Duplication    Length = 7-7 lines in 2 locations

src/ID3v2/Reader/LanguageTextFrameReader.php 1 location

@@ 113-119 (lines=7) @@
110
     *
111
     * @return string[]
112
     */
113
    protected function readText()
114
    {
115
        $this->getStream()->seek($this->getOffset() + 4);
116
        $text = $this->getStream()->read($this->getStream()->getSize() - 4);
117
118
        return explode("\x00", $this->charsetFilter->decode($text, $this->getEncoding()));
119
    }
120
121
    /**
122
     * Get text.

src/ID3v2/Reader/TextFrameReader.php 1 location

@@ 77-83 (lines=7) @@
74
     *
75
     * @return string[]
76
     */
77
    protected function readText()
78
    {
79
        $this->getStream()->seek($this->getOffset() + 1);
80
        $text = $this->getStream()->read($this->getStream()->getSize() - 1);
81
82
        return explode("\x00", $this->charsetFilter->decode($text, $this->getEncoding()));
83
    }
84
85
    /**
86
     * Get text.