@@ -35,7 +35,7 @@ |
||
35 | 35 | <td> |
36 | 36 | <?= $this->formatLogMessage($log['message'], $log['context']); ?> |
37 | 37 | <?php if ($log['context']) { ?> |
38 | - <pre class="text-muted prewrap m-t-5"><?= $this->escape(json_encode($log['context'], \JSON_PRETTY_PRINT | \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES)); ?></pre> |
|
38 | + <pre class="text-muted prewrap m-t-5"><?= $this->escape(json_encode($log['context'], \JSON_PRETTY_PRINT|\JSON_UNESCAPED_UNICODE|\JSON_UNESCAPED_SLASHES)); ?></pre> |
|
39 | 39 | <?php } ?> |
40 | 40 | </td> |
41 | 41 | </tr> |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | public function provideDependencies(Container $container): void |
41 | 41 | { |
42 | - $container->decorate(HttpFacadeInterface::class, function ( |
|
42 | + $container->decorate(HttpFacadeInterface::class, function( |
|
43 | 43 | HttpFacadeInterface $httpFacade |
44 | 44 | ) { |
45 | 45 | $this->httpFacade = $httpFacade; |
@@ -195,7 +195,7 @@ |
||
195 | 195 | public function setMessage(string $message): static |
196 | 196 | { |
197 | 197 | if (str_contains($message, "@anonymous\0")) { |
198 | - $message = preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)[0-9a-fA-F]++/', function ($m) { |
|
198 | + $message = preg_replace_callback('/[a-zA-Z_\x7f-\xff][\\\\a-zA-Z0-9_\x7f-\xff]*+@anonymous\x00.*?\.php(?:0x?|:[0-9]++\$)[0-9a-fA-F]++/', function($m) { |
|
199 | 199 | return class_exists($m[0], false) ? (get_parent_class($m[0]) ?: key(class_implements($m[0])) ?: 'class').'@anonymous' : $m[0]; |
200 | 200 | }, $message); |
201 | 201 | } |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | // remove main code/span tags |
101 | 101 | $code = preg_replace('#^<code.*?>\s*<span.*?>(.*)</span>\s*</code>#s', '\\1', $code); |
102 | 102 | // split multiline spans |
103 | - $code = preg_replace_callback('#<span ([^>]++)>((?:[^<]*+<br \/>)++[^<]*+)</span>#', function ($m) { |
|
103 | + $code = preg_replace_callback('#<span ([^>]++)>((?:[^<]*+<br \/>)++[^<]*+)</span>#', function($m) { |
|
104 | 104 | return "<span $m[1]>".str_replace('<br />', "</span><br /><span $m[1]>", $m[2]).'</span>'; |
105 | 105 | }, $code); |
106 | 106 | $content = explode('<br />', $code); |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | |
162 | 162 | private function escape(string $string): string |
163 | 163 | { |
164 | - return htmlspecialchars($string, \ENT_COMPAT | \ENT_SUBSTITUTE, 'UTF-8'); |
|
164 | + return htmlspecialchars($string, \ENT_COMPAT|\ENT_SUBSTITUTE, 'UTF-8'); |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | private function abbrClass(string $class): string |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | |
207 | 207 | private function formatFileFromText(string $text): string |
208 | 208 | { |
209 | - return preg_replace_callback('/in ("|")?(.+?)\1(?: +(?:on|at))? +line (\d+)/s', function ($match) { |
|
209 | + return preg_replace_callback('/in ("|")?(.+?)\1(?: +(?:on|at))? +line (\d+)/s', function($match) { |
|
210 | 210 | return 'in '.$this->formatFile($match[2], (int) $match[3]); |
211 | 211 | }, $text); |
212 | 212 | } |