From 4e1c2cefa606ebe2a47aa9b7e7f046164fbad400 Mon Sep 17 00:00:00 2001 From: James Newell Date: Fri, 8 Nov 2013 21:14:46 +1100 Subject: [PATCH 1/2] replaced tabs with spaces --- src/ModuleAutoloader.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ModuleAutoloader.php b/src/ModuleAutoloader.php index 9b1f547..027c382 100644 --- a/src/ModuleAutoloader.php +++ b/src/ModuleAutoloader.php @@ -185,9 +185,9 @@ public function autoload($class) foreach ($this->paths as $path) { $path = $path . $moduleClassPath; - if ($path == '.' || substr($path, 0, 2) == './' || substr($path, 0, 2) == '.\\') { - $path = realpath('.').substr($path, 1); - } + if ($path == '.' || substr($path, 0, 2) == './' || substr($path, 0, 2) == '.\\') { + $path = realpath('.').substr($path, 1); + } $classLoaded = $this->loadModuleFromDir($path, $class); if ($classLoaded) { From 32ec1394a9a407ff77ed37bdfe21e0f6ce5ec328 Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Mon, 11 Nov 2013 09:11:01 -0600 Subject: [PATCH 2/2] [zendframework/zf2#5445] CS fix - Spaces around operator ('.') --- src/ModuleAutoloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModuleAutoloader.php b/src/ModuleAutoloader.php index 027c382..5ff5b0a 100644 --- a/src/ModuleAutoloader.php +++ b/src/ModuleAutoloader.php @@ -186,7 +186,7 @@ public function autoload($class) $path = $path . $moduleClassPath; if ($path == '.' || substr($path, 0, 2) == './' || substr($path, 0, 2) == '.\\') { - $path = realpath('.').substr($path, 1); + $path = realpath('.') . substr($path, 1); } $classLoaded = $this->loadModuleFromDir($path, $class);