@@ -50,11 +50,11 @@ discard block |
||
50 | 50 | */ |
51 | 51 | protected static $instance; |
52 | 52 | |
53 | - /** |
|
54 | - * The custom application path defined by the developer. |
|
55 | - * |
|
56 | - * @var string $appPath |
|
57 | - */ |
|
53 | + /** |
|
54 | + * The custom application path defined by the developer. |
|
55 | + * |
|
56 | + * @var string $appPath |
|
57 | + */ |
|
58 | 58 | protected $appPath; |
59 | 59 | |
60 | 60 | /** |
@@ -455,24 +455,24 @@ discard block |
||
455 | 455 | } |
456 | 456 | |
457 | 457 | /** |
458 | - * You can load different configurations depending on your |
|
459 | - * current environment. Setting the environment also influences |
|
460 | - * things like logging and error reporting. |
|
461 | - * |
|
462 | - * This can be set to anything, but default usage is: |
|
463 | - * |
|
464 | - * local (development) |
|
465 | - * testing |
|
466 | - * production |
|
467 | - * |
|
468 | - * @return string |
|
469 | - */ |
|
470 | - public function bootEnvironment() |
|
471 | - { |
|
472 | - if (file_exists(SYS_PATH.'src'.DIRECTORY_SEPARATOR.'environment'.DIRECTORY_SEPARATOR.$this->environment().'.php')) { |
|
473 | - require_once SYS_PATH.'src'.DIRECTORY_SEPARATOR.'environment'.DIRECTORY_SEPARATOR.$this->environment().'.php'; |
|
474 | - } else { |
|
475 | - header('HTTP/1.1 503 Service Unavailable.', true, 503); |
|
458 | + * You can load different configurations depending on your |
|
459 | + * current environment. Setting the environment also influences |
|
460 | + * things like logging and error reporting. |
|
461 | + * |
|
462 | + * This can be set to anything, but default usage is: |
|
463 | + * |
|
464 | + * local (development) |
|
465 | + * testing |
|
466 | + * production |
|
467 | + * |
|
468 | + * @return string |
|
469 | + */ |
|
470 | + public function bootEnvironment() |
|
471 | + { |
|
472 | + if (file_exists(SYS_PATH.'src'.DIRECTORY_SEPARATOR.'environment'.DIRECTORY_SEPARATOR.$this->environment().'.php')) { |
|
473 | + require_once SYS_PATH.'src'.DIRECTORY_SEPARATOR.'environment'.DIRECTORY_SEPARATOR.$this->environment().'.php'; |
|
474 | + } else { |
|
475 | + header('HTTP/1.1 503 Service Unavailable.', true, 503); |
|
476 | 476 | print('<style> |
477 | 477 | body { |
478 | 478 | align-items: center; |
@@ -495,9 +495,9 @@ discard block |
||
495 | 495 | } |
496 | 496 | </style> |
497 | 497 | <p>The application environment is not set correctly.</p>'); |
498 | - exit; // EXIT_ERROR |
|
499 | - } |
|
500 | - } |
|
498 | + exit; // EXIT_ERROR |
|
499 | + } |
|
500 | + } |
|
501 | 501 | |
502 | 502 | /** |
503 | 503 | * Determine if the application has been bootstrapped before. |
@@ -609,13 +609,13 @@ discard block |
||
609 | 609 | $this->loadServiceProviders[get_class($provider)] = true; |
610 | 610 | } |
611 | 611 | |
612 | - /** |
|
613 | - * Determine if the given id type has been bound. |
|
614 | - * |
|
615 | - * @param string $id |
|
616 | - * |
|
617 | - * @return bool |
|
618 | - */ |
|
612 | + /** |
|
613 | + * Determine if the given id type has been bound. |
|
614 | + * |
|
615 | + * @param string $id |
|
616 | + * |
|
617 | + * @return bool |
|
618 | + */ |
|
619 | 619 | public function bound($id) |
620 | 620 | { |
621 | 621 | return parent::bound($id); |