@@ -14,7 +14,8 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | }); |