@@ -12,17 +12,17 @@ |
||
12 | 12 | /** |
13 | 13 | * Exception handling. |
14 | 14 | */ |
15 | -set_exception_handler([ \App\App::class, 'exceptionHandler' ]); |
|
15 | +set_exception_handler([\App\App::class, 'exceptionHandler']); |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * Configuration file. When testing, the tests/config.php file is used. |
19 | 19 | */ |
20 | -if (substr(basename($_SERVER['PHP_SELF']), 0, 7)==='phpunit') { |
|
20 | +if (substr(basename($_SERVER['PHP_SELF']), 0, 7) === 'phpunit') { |
|
21 | 21 | define('CONFIG_FILE', __DIR__ . '/tests/config.php'); |
22 | 22 | } else { |
23 | 23 | define('CONFIG_FILE', __DIR__ . '/config.php'); |
24 | 24 | } |
25 | 25 | if (!file_exists(CONFIG_FILE)) { |
26 | - echo "Please copy <code>config.example.php</code> to <code>".CONFIG_FILE."</code> and edit the values therein"; |
|
26 | + echo "Please copy <code>config.example.php</code> to <code>" . CONFIG_FILE . "</code> and edit the values therein"; |
|
27 | 27 | exit(1); |
28 | 28 | } |