Completed
Push — master ( 71d2f0...8e5780 )
by Derek
02:14
created
src/Nabu/Autoloader.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      */
24 24
     public function register()
25 25
     {
26
-        spl_autoload_register(array($this,"includeClass"));
26
+        spl_autoload_register(array($this, "includeClass"));
27 27
     }
28 28
 
29 29
     /**
@@ -41,10 +41,10 @@  discard block
 block discarded – undo
41 41
         $this->updateLog("info", "Preparing package {$package} for registration with path {$path}.");
42 42
 
43 43
         $package = trim($package, "\\");
44
-        $package = $package . "\\";
44
+        $package = $package."\\";
45 45
 
46 46
         $path = rtrim($path, DIRECTORY_SEPARATOR);
47
-        $path = $path . "/";
47
+        $path = $path."/";
48 48
 
49 49
         $path_registered = $this->registrationExists($package, $path);
50 50
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $package_stack = array();
83 83
 
84 84
         foreach ($class_bits as $bit) {
85
-            $package = $package . $bit . "\\";
85
+            $package = $package.$bit."\\";
86 86
 
87 87
             $package_registered = $this->packageRegistered($package);
88 88
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 
141 141
         foreach ($this->packages[$package_name] as $path) {
142 142
             $converted_class = str_replace('\\', DIRECTORY_SEPARATOR, $class_name);
143
-            $class_path      = $path . $converted_class . ".php";
143
+            $class_path      = $path.$converted_class.".php";
144 144
 
145 145
             $this->updateLog("debug", "Class file path is {$class_path}");
146 146
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             $package_loaded = $this->loadPackage($package, $class_path);
115 115
 
116 116
             if ($package_loaded) {
117
-                $this->updateLog("info", "Loaded {$class_path} using package {$package}");
117
+                $this->updateLog("info", "loaded {$class_path} using package {$package}");
118 118
                 return true;
119 119
             }
120 120
         }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             $this->updateLog("debug", "Class file path is {$class_path}");
146 146
 
147 147
             if (file_exists($class_path)) {
148
-                $this->updateLog("debug", "File {$class_path} exists; including file");
148
+                $this->updateLog("debug", "file {$class_path} exists; including file");
149 149
 
150 150
                 /** @noinspection PhpIncludeInspection */
151 151
                 require $class_path;
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 
155 155
                 $this->updateLog("info", "Completed loading {$class_path}");
156 156
             } else {
157
-                $this->updateLog("debug", "File {$class_path} does not exist");
157
+                $this->updateLog("debug", "file {$class_path} does not exist");
158 158
 
159 159
                 $class_file_found = false;
160 160
             }
@@ -176,9 +176,9 @@  discard block
 block discarded – undo
176 176
         $package_registered = array_key_exists($package, $this->packages);
177 177
 
178 178
         if ($package_registered) {
179
-            $this->updateLog("info", "Package {$package} is registered");
179
+            $this->updateLog("info", "package {$package} is registered");
180 180
         } else {
181
-            $this->updateLog("info", "Package {$package} is not registered");
181
+            $this->updateLog("info", "package {$package} is not registered");
182 182
         }
183 183
 
184 184
         return $package_registered;
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
             if ($path_registered !== false) {
204 204
                 $path_registered = true;
205 205
 
206
-                $this->updateLog("info", "Path {$path} already registered for package {$package}");
206
+                $this->updateLog("info", "path {$path} already registered for package {$package}");
207 207
             }
208 208
         } else {
209 209
             $path_registered = false;
Please login to merge, or discard this patch.