Code Duplication    Length = 10-10 lines in 2 locations

src/ID3v2/Reader/ExtendedHeaderReader.php 1 location

@@ 87-96 (lines=10) @@
84
     *
85
     * @return int
86
     */
87
    protected function readPadding()
88
    {
89
        if (Version::VERSION_24 !== $this->getVersion()) {
90
            return 0;
91
        }
92
93
        $this->getStream()->seek($this->getOffset() + 6);
94
95
        return $this->getStream()->readUInt32();
96
    }
97
98
    /**
99
     * Get ID3v2 extended header padding.

src/ID3v2/Reader/PictureFrameReader.php 1 location

@@ 81-90 (lines=10) @@
78
     *
79
     * @return string
80
     */
81
    protected function readImageFormat()
82
    {
83
        if (Version::VERSION_22 !== $this->getVersion()) {
84
            return '';
85
        }
86
87
        $this->getStream()->seek($this->getOffset() + 1);
88
89
        return $this->getStream()->read(3);
90
    }
91
92
    /**
93
     * Get image format.