Code Duplication    Length = 10-10 lines in 2 locations

src/ID3v1/Metadata.php 1 location

@@ 45-54 (lines=10) @@
42
     *
43
     * @return bool
44
     */
45
    public function exists()
46
    {
47
        if ($this->stream->getSize() < 128) {
48
            return false;
49
        }
50
51
        $this->stream->seek(-128, SEEK_END);
52
53
        return 'TAG' === $this->stream->read(3);
54
    }
55
56
    /**
57
     * Strip ID3v1 metadata.

src/ID3v2/Metadata.php 1 location

@@ 77-86 (lines=10) @@
74
     *
75
     * @return bool
76
     */
77
    public function exists()
78
    {
79
        if ($this->stream->getSize() < 10) {
80
            return false;
81
        }
82
83
        $this->stream->seek(0);
84
85
        return 'ID3' === $this->stream->read(3);
86
    }
87
88
    /**
89
     * Strip ID3v2 metadata.