@@ -54,11 +54,11 @@ discard block |
||
54 | 54 | */ |
55 | 55 | protected static $phpVersion = '7.3.12'; |
56 | 56 | |
57 | - /** |
|
58 | - * The custom application path defined by the developer. |
|
59 | - * |
|
60 | - * @var string $appPath |
|
61 | - */ |
|
57 | + /** |
|
58 | + * The custom application path defined by the developer. |
|
59 | + * |
|
60 | + * @var string $appPath |
|
61 | + */ |
|
62 | 62 | protected $appPath; |
63 | 63 | |
64 | 64 | /** |
@@ -459,24 +459,24 @@ discard block |
||
459 | 459 | } |
460 | 460 | |
461 | 461 | /** |
462 | - * You can load different configurations depending on your |
|
463 | - * current environment. Setting the environment also influences |
|
464 | - * things like logging and error reporting. |
|
465 | - * |
|
466 | - * This can be set to anything, but default usage is: |
|
467 | - * |
|
468 | - * local (development) |
|
469 | - * testing |
|
470 | - * production |
|
471 | - * |
|
472 | - * @return string |
|
473 | - */ |
|
474 | - public function bootEnvironment() |
|
475 | - { |
|
476 | - if (file_exists(SYS_PATH.'src'.DIRECTORY_SEPARATOR.'environment'.DIRECTORY_SEPARATOR.$this->environment().'.php')) { |
|
477 | - require_once SYS_PATH.'src'.DIRECTORY_SEPARATOR.'environment'.DIRECTORY_SEPARATOR.$this->environment().'.php'; |
|
478 | - } else { |
|
479 | - header('HTTP/1.1 503 Service Unavailable.', true, 503); |
|
462 | + * You can load different configurations depending on your |
|
463 | + * current environment. Setting the environment also influences |
|
464 | + * things like logging and error reporting. |
|
465 | + * |
|
466 | + * This can be set to anything, but default usage is: |
|
467 | + * |
|
468 | + * local (development) |
|
469 | + * testing |
|
470 | + * production |
|
471 | + * |
|
472 | + * @return string |
|
473 | + */ |
|
474 | + public function bootEnvironment() |
|
475 | + { |
|
476 | + if (file_exists(SYS_PATH.'src'.DIRECTORY_SEPARATOR.'environment'.DIRECTORY_SEPARATOR.$this->environment().'.php')) { |
|
477 | + require_once SYS_PATH.'src'.DIRECTORY_SEPARATOR.'environment'.DIRECTORY_SEPARATOR.$this->environment().'.php'; |
|
478 | + } else { |
|
479 | + header('HTTP/1.1 503 Service Unavailable.', true, 503); |
|
480 | 480 | print('<style> |
481 | 481 | body { |
482 | 482 | align-items: center; |
@@ -499,9 +499,9 @@ discard block |
||
499 | 499 | } |
500 | 500 | </style> |
501 | 501 | <p>The application environment is not set correctly.</p>'); |
502 | - exit; // EXIT_ERROR |
|
503 | - } |
|
504 | - } |
|
502 | + exit; // EXIT_ERROR |
|
503 | + } |
|
504 | + } |
|
505 | 505 | |
506 | 506 | /** |
507 | 507 | * Determine if the application has been bootstrapped before. |
@@ -649,13 +649,13 @@ discard block |
||
649 | 649 | $this->loadServiceProviders[get_class($provider)] = true; |
650 | 650 | } |
651 | 651 | |
652 | - /** |
|
653 | - * Determine if the given id type has been bound. |
|
654 | - * |
|
655 | - * @param string $id |
|
656 | - * |
|
657 | - * @return bool |
|
658 | - */ |
|
652 | + /** |
|
653 | + * Determine if the given id type has been bound. |
|
654 | + * |
|
655 | + * @param string $id |
|
656 | + * |
|
657 | + * @return bool |
|
658 | + */ |
|
659 | 659 | public function bound($id) |
660 | 660 | { |
661 | 661 | return parent::bound($id); |