Completed
Push — master ( 34be94...e94bc5 )
by Derek
02:07
created
src/Nabu/Autoloader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function register()
35 35
     {
36
-        spl_autoload_register(array($this,"includeClass"));
36
+        spl_autoload_register(array($this, "includeClass"));
37 37
     }
38 38
 
39 39
     /**
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
         $this->logger->debug("Parameters: package = {$package}, path = {$path}");
47 47
 
48 48
         $package = trim($package, "\\");
49
-        $package = $package . "\\";
49
+        $package = $package."\\";
50 50
 
51 51
         $path = rtrim($path, "/");
52
-        $path = $path . "/";
52
+        $path = $path."/";
53 53
 
54 54
         $this->logger->debug("Registering index {$package} with {$path}");
55 55
         $this->packages[$package][] = $path;
@@ -118,14 +118,14 @@  discard block
 block discarded – undo
118 118
 
119 119
             foreach ($this->packages[$package_name] as $path) {
120 120
                 $converted_class = str_replace('\\', '/', $class_name);
121
-                $class_path      = $path . $converted_class . ".php";
121
+                $class_path      = $path.$converted_class.".php";
122 122
 
123 123
                 $this->logger->debug("Set up class path as {$class_path}");
124 124
 
125 125
                 if (file_exists($class_path)) {
126 126
                     $this->logger->debug("File {$class_path} exists");
127 127
 
128
-                    $this->logger->debug("Including " . $class_path);
128
+                    $this->logger->debug("Including ".$class_path);
129 129
                     /** @noinspection PhpIncludeInspection */
130 130
                     include $class_path;
131 131
 
Please login to merge, or discard this patch.