@@ -1,14 +1,14 @@ discard block |
||
1 | 1 | <?php |
2 | -if(file_exists(__DIR__ . '/vendor/autoload.php')) |
|
2 | +if (file_exists(__DIR__.'/vendor/autoload.php')) |
|
3 | 3 | { |
4 | - require __DIR__ . '/vendor/autoload.php'; |
|
4 | + require __DIR__.'/vendor/autoload.php'; |
|
5 | 5 | } |
6 | -else if(file_exists(__DIR__ . '/../common/Autoload.php')) |
|
6 | +else if (file_exists(__DIR__.'/../common/Autoload.php')) |
|
7 | 7 | { |
8 | - require(__DIR__ . '/../common/Autoload.php'); |
|
8 | + require(__DIR__.'/../common/Autoload.php'); |
|
9 | 9 | } |
10 | 10 | |
11 | -spl_autoload_register(function ($class) { |
|
11 | +spl_autoload_register(function($class) { |
|
12 | 12 | |
13 | 13 | // project-specific namespace prefix |
14 | 14 | $prefix = 'Flipside\\Secure\\'; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | // replace the namespace prefix with the base directory, replace namespace |
30 | 30 | // separators with directory separators in the relative class name, append |
31 | 31 | // with .php |
32 | - $file = $base_dir . str_replace('\\', '/', $relative_class) . '.php'; |
|
32 | + $file = $base_dir.str_replace('\\', '/', $relative_class).'.php'; |
|
33 | 33 | |
34 | 34 | // if the file exists, require it |
35 | 35 | if (file_exists($file)) { |
@@ -2,8 +2,7 @@ |
||
2 | 2 | if(file_exists(__DIR__ . '/vendor/autoload.php')) |
3 | 3 | { |
4 | 4 | require __DIR__ . '/vendor/autoload.php'; |
5 | -} |
|
6 | -else if(file_exists(__DIR__ . '/../common/Autoload.php')) |
|
5 | +} else if(file_exists(__DIR__ . '/../common/Autoload.php')) |
|
7 | 6 | { |
8 | 7 | require(__DIR__ . '/../common/Autoload.php'); |
9 | 8 | } |