Completed
Push — master ( 1ecf45...414f2f )
by Derek
02:32
created
src/Nabu/Autoloader.php 2 patches
Spacing   +4 added lines, -4 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;
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
             foreach ($this->packages[$package_name] as $path) {
113 113
                 $converted_class = str_replace('\\', '/', $class_name);
114
-                $class_path      = $path . $converted_class . ".php";
114
+                $class_path      = $path.$converted_class.".php";
115 115
 
116 116
                 $this->logger->debug("Class file path is {$class_path}");
117 117
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function registerPackages($package, $path)
44 44
     {
45
-        $this->logger->info("Preparing {$package} package for registration.");
45
+        $this->logger->info("preparing {$package} package for registration.");
46 46
         $this->logger->debug("Parameters: package = {$package}, path = {$path}");
47 47
 
48 48
         $package = trim($package, "\\");
@@ -116,14 +116,14 @@  discard block
 block discarded – undo
116 116
                 $this->logger->debug("Class file path is {$class_path}");
117 117
 
118 118
                 if (file_exists($class_path)) {
119
-                    $this->logger->debug("File {$class_path} exists; including file");
119
+                    $this->logger->debug("file {$class_path} exists; including file");
120 120
 
121 121
                     /** @noinspection PhpIncludeInspection */
122 122
                     include $class_path;
123 123
 
124 124
                     $this->logger->info("Completed loading {$class_path}");
125 125
                 } else {
126
-                    $this->logger->debug("File {$class_path} does not exist");
126
+                    $this->logger->debug("file {$class_path} does not exist");
127 127
 
128 128
                     $class_path = false;
129 129
                 }
Please login to merge, or discard this patch.