@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public static function handleShutdown(): void |
| 52 | 52 | { |
| 53 | - if (!empty($error = error_get_last())) { |
|
| 53 | + if (!empty($error = error_get_last())){ |
|
| 54 | 54 | self::handleException( |
| 55 | 55 | new FatalException( |
| 56 | 56 | $error['message'], |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | public static function handleError($code, $message, $filename = '', $line = 0): void |
| 77 | 77 | { |
| 78 | - if (!(error_reporting() & $code)) { |
|
| 78 | + if (!(error_reporting() & $code)){ |
|
| 79 | 79 | return; |
| 80 | 80 | } |
| 81 | 81 | |
@@ -89,9 +89,9 @@ discard block |
||
| 89 | 89 | */ |
| 90 | 90 | public static function handleException(\Throwable $e): void |
| 91 | 91 | { |
| 92 | - if (php_sapi_name() == 'cli') { |
|
| 92 | + if (php_sapi_name() == 'cli'){ |
|
| 93 | 93 | $handler = new ConsoleHandler(self::$output); |
| 94 | - } else { |
|
| 94 | + }else{ |
|
| 95 | 95 | $handler = new HtmlHandler(HtmlHandler::INVERTED); |
| 96 | 96 | } |
| 97 | 97 | |
@@ -50,7 +50,8 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public static function handleShutdown(): void |
| 52 | 52 | { |
| 53 | - if (!empty($error = error_get_last())) { |
|
| 53 | + if (!empty($error = error_get_last())) |
|
| 54 | + { |
|
| 54 | 55 | self::handleException( |
| 55 | 56 | new FatalException( |
| 56 | 57 | $error['message'], |
@@ -75,7 +76,8 @@ discard block |
||
| 75 | 76 | */ |
| 76 | 77 | public static function handleError($code, $message, $filename = '', $line = 0): void |
| 77 | 78 | { |
| 78 | - if (!(error_reporting() & $code)) { |
|
| 79 | + if (!(error_reporting() & $code)) |
|
| 80 | + { |
|
| 79 | 81 | return; |
| 80 | 82 | } |
| 81 | 83 | |
@@ -89,9 +91,12 @@ discard block |
||
| 89 | 91 | */ |
| 90 | 92 | public static function handleException(\Throwable $e): void |
| 91 | 93 | { |
| 92 | - if (php_sapi_name() == 'cli') { |
|
| 94 | + if (php_sapi_name() == 'cli') |
|
| 95 | + { |
|
| 93 | 96 | $handler = new ConsoleHandler(self::$output); |
| 94 | - } else { |
|
| 97 | + } |
|
| 98 | + else |
|
| 99 | + { |
|
| 95 | 100 | $handler = new HtmlHandler(HtmlHandler::INVERTED); |
| 96 | 101 | } |
| 97 | 102 | |