Code Duplication    Length = 10-10 lines in 2 locations

src/ID3v1/Metadata.php 1 location

@@ 63-72 (lines=10) @@
60
     *
61
     * @return bool
62
     */
63
    public function exists()
64
    {
65
        if ($this->stream->getSize() < 128) {
66
            return false;
67
        }
68
69
        $this->stream->seek(-128, SEEK_END);
70
71
        return 'TAG' === $this->stream->read(3);
72
    }
73
74
    /**
75
     * Strip ID3v1 metadata.

src/ID3v2/Metadata.php 1 location

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