Code Duplication    Length = 5-5 lines in 2 locations

src/ID3v2/Reader/ExtendedHeaderReader.php 1 location

@@ 123-127 (lines=5) @@
120
            return 0;
121
        }
122
123
        if (Version::VERSION_23 === $this->getVersion()) {
124
            $this->getStream()->seek($this->getOffset() + 10);
125
126
            return $this->getStream()->readUInt32();
127
        }
128
129
        $offset = 7;
130
        if ($this->isFlagEnabled(ExtendedHeaderFlag::FLAG_TAG_IS_AN_UPDATE)) {

src/ID3v2/Reader/FrameHeaderReader.php 1 location

@@ 67-71 (lines=5) @@
64
     */
65
    protected function readSize()
66
    {
67
        if (Version::VERSION_22 === $this->getVersion()) {
68
            $this->getStream()->seek($this->getOffset() + 3);
69
70
            return $this->getStream()->readUInt24();
71
        }
72
73
        $this->getStream()->seek($this->getOffset() + 4);
74