Code Duplication    Length = 10-10 lines in 2 locations

src/ID3v1/Metadata.php 1 location

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

src/ID3v2/Metadata.php 1 location

@@ 58-67 (lines=10) @@
55
    /**
56
     * {@inheritdoc}
57
     */
58
    public function exists()
59
    {
60
        if ($this->stream->getSize() < 10) {
61
            return false;
62
        }
63
64
        $this->stream->seek(0);
65
66
        return 'ID3' === $this->stream->read(3);
67
    }
68
69
    /**
70
     * {@inheritdoc}