Code Duplication    Length = 10-10 lines in 2 locations

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.

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.