@@ -172,7 +172,7 @@ |
||
172 | 172 | * const NOTICE = 'notice'; // Normal but significant events. |
173 | 173 | * const INFO = 'info'; // Interesting events. User logs in, SQL logs. |
174 | 174 | * const DEBUG = 'debug'; // Detailed debug information. |
175 | - */ |
|
175 | + */ |
|
176 | 176 | private static function mapErrorLevelToLogLevel($level): string |
177 | 177 | { |
178 | 178 | // http://php.net/manual/en/errorfunc.constants.php |
@@ -95,13 +95,13 @@ discard block |
||
95 | 95 | $this->hasHaltingMessages = true; |
96 | 96 | if (($context = current($context)) !== false) { |
97 | 97 | $display_error = Debugger::formatThrowable($context); |
98 | - $display_error .= PHP_EOL . Debugger::tracesToString($context->getTrace(), false); |
|
98 | + $display_error .= PHP_EOL.Debugger::tracesToString($context->getTrace(), false); |
|
99 | 99 | error_log($display_error); |
100 | 100 | self::HTTP500($display_error); |
101 | 101 | } |
102 | 102 | } elseif ($this->systemHalted($level)) { // analyses error level |
103 | 103 | $display_error = sprintf( |
104 | - PHP_EOL . '%s in file %s:%d' . PHP_EOL . '%s', |
|
104 | + PHP_EOL.'%s in file %s:%d'.PHP_EOL.'%s', |
|
105 | 105 | $level, |
106 | 106 | Debugger::formatFilename($context['file']), |
107 | 107 | $context['line'], |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | error_log($display_error); |
112 | 112 | |
113 | - $display_error .= PHP_EOL . Debugger::tracesToString($context['trace'], true); |
|
113 | + $display_error .= PHP_EOL.Debugger::tracesToString($context['trace'], true); |
|
114 | 114 | self::HTTP500($display_error); |
115 | 115 | } else {// --- Handles user messages, through SESSION storage |
116 | 116 | $this->state_agent->addMessage($level, $message, $context); |
@@ -164,6 +164,6 @@ discard block |
||
164 | 164 | return $m[$level]; |
165 | 165 | } |
166 | 166 | |
167 | - throw new \Exception(__FUNCTION__ . "($level): $level is unknown"); |
|
167 | + throw new \Exception(__FUNCTION__."($level): $level is unknown"); |
|
168 | 168 | } |
169 | 169 | } |