From 4b2cbfb38472e3c7cc4ba198c1c71ae7357ffb68 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Tue, 28 May 2024 01:23:52 +0100 Subject: [PATCH] Cosmetics --- src/Mp3Info.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Mp3Info.php b/src/Mp3Info.php index 5ce4e87..c4cd99a 100644 --- a/src/Mp3Info.php +++ b/src/Mp3Info.php @@ -298,7 +298,7 @@ class Mp3Info $this->fileObj->seekTo($this->fileObj->getFileSize() - 128); if ($this->fileObj->getBytes(3) == self::TAG1_SYNC) { if ($mode & self::TAGS) { - $audioSize -= $this->readId3v1Body(); + $audioSize -= $this->_readId3v1(); } else { $audioSize -= 128; } @@ -438,19 +438,19 @@ class Mp3Info /** * Reads id3v1 tag. * - * @link https://id3.org/ID3v1 + * @link https://id3.org/ID3v1 * @return int Returns length of id3v1 tag. */ - private function readId3v1Body(): int + private function _readId3v1(): int { - $this->tags1['song'] = trim($this->fileObj->getBytes(30)); + $this->tags1['song'] = trim($this->fileObj->getBytes(30)); $this->tags1['artist'] = trim($this->fileObj->getBytes(30)); - $this->tags1['album'] = trim($this->fileObj->getBytes(30)); - $this->tags1['year'] = trim($this->fileObj->getBytes(4)); + $this->tags1['album'] = trim($this->fileObj->getBytes(30)); + $this->tags1['year'] = trim($this->fileObj->getBytes(4)); $comment = $this->fileObj->getBytes(30); if ($comment[28] == "\x00" && $comment[29] != "\x00") { // id3v1.1 - last Byte of comment is trackNo - $this->tags1['track'] = ord($comment[29]); + $this->tags1['track'] = ord($comment[29]); $this->tags1['comment'] = trim(substr($comment, 0, 28)); } else { // id3v1.0