From 06b98bcd759624ebbc146e1da388ee82ba13a1fa Mon Sep 17 00:00:00 2001 From: Gaurav Narula Date: Wed, 9 Nov 2016 21:30:56 +0530 Subject: [PATCH] Fix class name to be PSR-4 compatible The class and file names are case sensitive. This fixes the discrepancy and allows autoloading of getid3 class. --- src/ID3Parser.php | 4 ++-- src/getID3/getid3.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ID3Parser.php b/src/ID3Parser.php index f87a8b7..0f85851 100644 --- a/src/ID3Parser.php +++ b/src/ID3Parser.php @@ -8,7 +8,7 @@ namespace ID3Parser; -use ID3Parser\getID3\getID3; +use ID3Parser\getID3\getid3; class ID3Parser { /** @@ -16,7 +16,7 @@ class ID3Parser { * @return array */ public function analyze($fileName) { - $getID3 = new getID3(); + $getID3 = new getid3(); return $getID3->analyze($fileName); } } diff --git a/src/getID3/getid3.php b/src/getID3/getid3.php index 5e36f9f..b25092b 100644 --- a/src/getID3/getid3.php +++ b/src/getID3/getid3.php @@ -8,7 +8,7 @@ namespace ID3Parser\getID3; -class getID3 { +class getid3 { // public: Settings private $encoding = 'UTF-8'; // CASE SENSITIVE! - i.e. (must be supported by iconv()). Examples: ISO-8859-1 UTF-8 UTF-16 UTF-16BE