| @@ 79-88 (lines=10) @@ | ||
| 76 | /** |
|
| 77 | * {@inheritdoc} |
|
| 78 | */ |
|
| 79 | public function exists() |
|
| 80 | { |
|
| 81 | if ($this->stream->getSize() < 128) { |
|
| 82 | return false; |
|
| 83 | } |
|
| 84 | ||
| 85 | $this->stream->seek(-128, SEEK_END); |
|
| 86 | ||
| 87 | return 'TAG' === $this->stream->read(3); |
|
| 88 | } |
|
| 89 | ||
| 90 | /** |
|
| 91 | * {@inheritdoc} |
|
| @@ 59-68 (lines=10) @@ | ||
| 56 | /** |
|
| 57 | * {@inheritdoc} |
|
| 58 | */ |
|
| 59 | public function exists() |
|
| 60 | { |
|
| 61 | if ($this->stream->getSize() < 10) { |
|
| 62 | return false; |
|
| 63 | } |
|
| 64 | ||
| 65 | $this->stream->seek(0); |
|
| 66 | ||
| 67 | return 'ID3' === $this->stream->read(3); |
|
| 68 | } |
|
| 69 | ||
| 70 | /** |
|
| 71 | * {@inheritdoc} |
|