| @@ -1,16 +1,16 @@ discard block | ||
| 1 | 1 | <?php | 
| 2 | -define('__APP_ROOT__',__DIR__ . '/../') ; | |
| 2 | +define('__APP_ROOT__', __DIR__ . '/../'); | |
| 3 | 3 | |
| 4 | -require __APP_ROOT__.'bootstrap/bootstrap.php'; | |
| 5 | -require __APP_ROOT__.'vendor/autoload.php'; | |
| 6 | -require __APP_ROOT__.'config/settings.php'; | |
| 4 | +require __APP_ROOT__ . 'bootstrap/bootstrap.php'; | |
| 5 | +require __APP_ROOT__ . 'vendor/autoload.php'; | |
| 6 | +require __APP_ROOT__ . 'config/settings.php'; | |
| 7 | 7 | |
| 8 | -require __APP_ROOT__.'core/Functions/general_helpers.php'; | |
| 8 | +require __APP_ROOT__ . 'core/Functions/general_helpers.php'; | |
| 9 | 9 | |
| 10 | 10 | |
| 11 | 11 | $app = new \Core\App($config); | 
| 12 | 12 | |
| 13 | -if($config['settings']['debug'] && !$config['settings']['tracy']['active']){ | |
| 13 | +if ($config['settings']['debug'] && !$config['settings']['tracy']['active']) { | |
| 14 | 14 |      ini_set('display_errors', 1); | 
| 15 | 15 |      ini_set('display_startup_errors', 1); | 
| 16 | 16 | error_reporting(E_ALL); | 
| @@ -19,19 +19,19 @@ discard block | ||
| 19 | 19 | |
| 20 | 20 | use SlimFacades\Facade; | 
| 21 | 21 | // get container app | 
| 22 | -require __APP_ROOT__.'bootstrap/dependencies.php'; | |
| 22 | +require __APP_ROOT__ . 'bootstrap/dependencies.php'; | |
| 23 | 23 | |
| 24 | -require __APP_ROOT__.'bootstrap/routes.php'; | |
| 25 | -require __APP_ROOT__.'core/Functions/helpers.php'; | |
| 24 | +require __APP_ROOT__ . 'bootstrap/routes.php'; | |
| 25 | +require __APP_ROOT__ . 'core/Functions/helpers.php'; | |
| 26 | 26 | |
| 27 | -if(php_sapi_name() != 'cli') { | |
| 27 | +if (php_sapi_name() != 'cli') { | |
| 28 | 28 | $settings['tracy']['path'] = ''; | 
| 29 | -    if($config['settings']['debug'] && $config['settings']['tracy']['active']){ | |
| 29 | +    if ($config['settings']['debug'] && $config['settings']['tracy']['active']) { | |
| 30 | 30 | Tracy\Debugger::enable(Tracy\Debugger::DEVELOPMENT, $config['settings']['tracy']['path']); | 
| 31 | 31 | } | 
| 32 | 32 | Facade::setFacadeApplication($app); | 
| 33 | 33 | |
| 34 | - require __APP_ROOT__.'bootstrap/middlewares.php'; | |
| 34 | + require __APP_ROOT__ . 'bootstrap/middlewares.php'; | |
| 35 | 35 | |
| 36 | 36 | $app->run(); | 
| 37 | 37 | |