@@ -51,5 +51,5 @@ |
||
51 | 51 | |
52 | 52 | if (class_exists('Composer\Autoload\ClassLoader')) { |
53 | 53 | trigger_error('Your project already makes use of Composer. You SHOULD use the composer dependency "phpfastcache/phpfastcache" instead of hard-autoloading.', |
54 | - E_USER_WARNING); |
|
54 | + E_USER_WARNING); |
|
55 | 55 | } |
56 | 56 | \ No newline at end of file |
@@ -18,9 +18,9 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Register Autoload |
20 | 20 | */ |
21 | -spl_autoload_register(function ($entity) { |
|
21 | +spl_autoload_register(function($entity) { |
|
22 | 22 | $module = explode('\\', $entity, 2); |
23 | - if (!in_array($module[ 0 ], ['phpFastCache', 'Psr'])) { |
|
23 | + if (!in_array($module[0], ['phpFastCache', 'Psr'])) { |
|
24 | 24 | /** |
25 | 25 | * Not a part of phpFastCache file |
26 | 26 | * then we return here. |
@@ -32,11 +32,11 @@ discard block |
||
32 | 32 | |
33 | 33 | if (is_readable($path)) { |
34 | 34 | require_once $path; |
35 | - }else{ |
|
35 | + } else { |
|
36 | 36 | trigger_error('Cannot locate the Psr/Cache files', E_USER_ERROR); |
37 | 37 | return; |
38 | 38 | } |
39 | - }else{ |
|
39 | + } else { |
|
40 | 40 | // Unsupported entity |
41 | 41 | return; |
42 | 42 | } |
@@ -32,11 +32,11 @@ |
||
32 | 32 | |
33 | 33 | if (is_readable($path)) { |
34 | 34 | require_once $path; |
35 | - }else{ |
|
35 | + } else{ |
|
36 | 36 | trigger_error('Cannot locate the Psr/Cache files', E_USER_ERROR); |
37 | 37 | return; |
38 | 38 | } |
39 | - }else{ |
|
39 | + } else{ |
|
40 | 40 | // Unsupported entity |
41 | 41 | return; |
42 | 42 | } |