@@ -57,14 +57,14 @@ discard block |
||
| 57 | 57 | break; |
| 58 | 58 | |
| 59 | 59 | case 'development': |
| 60 | - error_reporting(-1); // Report all type of errors |
|
| 61 | - ini_set('display_errors', 1); // Display all errors |
|
| 62 | - ini_set('output_buffering', 0); // Do not buffer output |
|
| 63 | - |
|
| 64 | - set_exception_handler(function ($exception) { |
|
| 65 | - echo "Anax: Uncaught exception: <p>" . |
|
| 66 | - $exception->getMessage() . "</p><pre>" . |
|
| 67 | - $exception->getTraceAsString() . "</pre>"; |
|
| 60 | + error_reporting(-1); // Report all type of errors |
|
| 61 | + ini_set('display_errors', 1); // Display all errors |
|
| 62 | + ini_set('output_buffering', 0); // Do not buffer output |
|
| 63 | + |
|
| 64 | + set_exception_handler(function($exception) { |
|
| 65 | + echo "Anax: Uncaught exception: <p>". |
|
| 66 | + $exception->getMessage()."</p><pre>". |
|
| 67 | + $exception->getTraceAsString()."</pre>"; |
|
| 68 | 68 | }); |
| 69 | 69 | break; |
| 70 | 70 | |
@@ -92,9 +92,9 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | public function log($level, $message, array $context = []) |
| 94 | 94 | { |
| 95 | - echo "Level: " . $level . "<br>" |
|
| 96 | - . "Message: " . $message . "<br>" |
|
| 97 | - . htmlentities(print_r($context, 1)) . "<br>"; |
|
| 95 | + echo "Level: ".$level."<br>" |
|
| 96 | + . "Message: ".$message."<br>" |
|
| 97 | + . htmlentities(print_r($context, 1))."<br>"; |
|
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | |