@@ -17,7 +17,8 @@ discard block |
||
| 17 | 17 | require(__DIR__ . '/../common/Autoload.php'); |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | -spl_autoload_register(function ($class) { |
|
| 20 | +spl_autoload_register(function ($class) |
|
| 21 | +{ |
|
| 21 | 22 | |
| 22 | 23 | // project-specific namespace prefix |
| 23 | 24 | $prefix = 'Flipside\\Profiles\\'; |
@@ -27,7 +28,8 @@ discard block |
||
| 27 | 28 | |
| 28 | 29 | // does the class use the namespace prefix? |
| 29 | 30 | $len = strlen($prefix); |
| 30 | - if (strncmp($prefix, $class, $len) !== 0) { |
|
| 31 | + if (strncmp($prefix, $class, $len) !== 0) |
|
| 32 | + { |
|
| 31 | 33 | // no, move to the next registered autoloader |
| 32 | 34 | return; |
| 33 | 35 | } |
@@ -41,7 +43,8 @@ discard block |
||
| 41 | 43 | $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; |
| 42 | 44 | |
| 43 | 45 | // if the file exists, require it |
| 44 | - if (file_exists($file)) { |
|
| 46 | + if (file_exists($file)) |
|
| 47 | + { |
|
| 45 | 48 | require $file; |
| 46 | 49 | } |
| 47 | 50 | }); |