@@ -42,13 +42,13 @@ |
||
| 42 | 42 | default => 'log', |
| 43 | 43 | }; |
| 44 | 44 | |
| 45 | - echo "<script>".printf( |
|
| 45 | + echo "<script>" . printf( |
|
| 46 | 46 | "console.%s('%s [%s] %s');", |
| 47 | 47 | $jsMethod, |
| 48 | 48 | date('y-m-d H:i:s'), |
| 49 | 49 | $level, |
| 50 | 50 | $this->stringFormat($text), |
| 51 | - )."</script>"; |
|
| 51 | + ) . "</script>"; |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | private function stringFormat(string $input): string |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | // interpolate replacement values into the message and return |
| 124 | - return strtr((string)$message, $replace); |
|
| 124 | + return strtr((string) $message, $replace); |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | public function log(mixed $level, string | Stringable $message, array $context = []): void |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @param array $context |
| 23 | 23 | * @return void |
| 24 | 24 | */ |
| 25 | - public function log(mixed $level, string|Stringable $message, array $context = []): void |
|
| 25 | + public function log(mixed $level, string | Stringable $message, array $context = []): void |
|
| 26 | 26 | { |
| 27 | 27 | $text = $this->interpolate($message, $context); |
| 28 | 28 | |
@@ -50,11 +50,11 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | private function format1DArray(array $value): string |
| 52 | 52 | { |
| 53 | - $lengthFirstColumn = array_reduce(array_keys($value), function (mixed $carry, mixed $string) { |
|
| 53 | + $lengthFirstColumn = array_reduce(array_keys($value), function(mixed $carry, mixed $string) { |
|
| 54 | 54 | return max($carry, strlen((string) $string)); |
| 55 | 55 | } |
| 56 | 56 | ); |
| 57 | - $lengthSecondColumn = array_reduce($value, function (mixed $carry, string $string) { |
|
| 57 | + $lengthSecondColumn = array_reduce($value, function(mixed $carry, string $string) { |
|
| 58 | 58 | return max($carry, strlen($string)); |
| 59 | 59 | } |
| 60 | 60 | ); |