Completed
Push — master ( 047121...54c8bf )
by Patrick
02:58 queued 01:25
created
Autoload.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@  discard block
 block discarded – undo
14 14
     require(__DIR__ . '/vendor/autoload.php');
15 15
 }
16 16
 
17
-spl_autoload_register(function ($class) {
17
+spl_autoload_register(function ($class)
18
+{
18 19
 
19 20
     // project-specific namespace prefix
20 21
     $prefix = 'Flipside\\Profiles\\';
@@ -24,7 +25,8 @@  discard block
 block discarded – undo
24 25
 
25 26
     // does the class use the namespace prefix?
26 27
     $len = strlen($prefix);
27
-    if (strncmp($prefix, $class, $len) !== 0) {
28
+    if (strncmp($prefix, $class, $len) !== 0)
29
+    {
28 30
         // no, move to the next registered autoloader
29 31
         return;
30 32
     }
@@ -38,7 +40,8 @@  discard block
 block discarded – undo
38 40
     $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
39 41
 
40 42
     // if the file exists, require it
41
-    if (file_exists($file)) {
43
+    if (file_exists($file))
44
+    {
42 45
         require $file;
43 46
     }
44 47
 });
Please login to merge, or discard this patch.