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/FrameReader.php 1 location

@@ 81-85 (lines=5) @@
78
     */
79
    protected function readSize()
80
    {
81
        if (Version::VERSION_22 === $this->getVersion()) {
82
            $this->getStream()->seek($this->getOffset() + 3);
83
84
            return $this->getStream()->readUInt24();
85
        }
86
87
        $this->getStream()->seek($this->getOffset() + 4);
88