@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | is_array($message) => var_export($message, true), |
125 | 125 | is_object($message) => method_exists($message, '__toString') |
126 | 126 | ? (string) $message |
127 | - : json_encode($message, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE), |
|
127 | + : json_encode($message, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES|JSON_UNESCAPED_UNICODE), |
|
128 | 128 | default => (string) $message |
129 | 129 | }; |
130 | 130 | |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $timestamp = date('Y-m-d H:i:s'); |
135 | 135 | $logEntry = "[$timestamp] [$level] [$type] $formattedMessage" . PHP_EOL; |
136 | 136 | |
137 | - file_put_contents($this->logFile, $logEntry, FILE_APPEND | LOCK_EX); |
|
137 | + file_put_contents($this->logFile, $logEntry, FILE_APPEND|LOCK_EX); |
|
138 | 138 | } |
139 | 139 | |
140 | 140 | /** |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | { |
260 | 260 | $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
261 | 261 | $traceInfo = array_map( |
262 | - function ($trace) { |
|
262 | + function($trace) { |
|
263 | 263 | $file = $trace['file'] ?? '[internal function]'; |
264 | 264 | $line = $trace['line'] ?? '?'; |
265 | 265 | $function = $trace['function']; |