@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | * @param array $context |
| 17 | 17 | * @return void |
| 18 | 18 | */ |
| 19 | - public function table(string|\Stringable $message, array $context = []): void |
|
| 19 | + public function table(string | \Stringable $message, array $context = []): void |
|
| 20 | 20 | { |
| 21 | 21 | $this->log('table', $message . "\n{Table}", ['Table' => print_r($context, true)]); |
| 22 | 22 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * @param array $context |
| 30 | 30 | * @return void |
| 31 | 31 | */ |
| 32 | - public function log(mixed $level, string|\Stringable $message, array $context = []): void |
|
| 32 | + public function log(mixed $level, string | \Stringable $message, array $context = []): void |
|
| 33 | 33 | { |
| 34 | 34 | $text = $this->interpolate($message, $context); |
| 35 | 35 | $color = '1;37'; |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * @param array $context |
| 20 | 20 | * @return void |
| 21 | 21 | */ |
| 22 | - public function table(string|\Stringable $message, array $context = []): void |
|
| 22 | + public function table(string | \Stringable $message, array $context = []): void |
|
| 23 | 23 | { |
| 24 | 24 | $this->log('table', $message, $context); |
| 25 | 25 | } |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | * @param array $context |
| 33 | 33 | * @return void |
| 34 | 34 | */ |
| 35 | - public function log(mixed $level, string|\Stringable $message, array $context = []): void |
|
| 35 | + public function log(mixed $level, string | \Stringable $message, array $context = []): void |
|
| 36 | 36 | { |
| 37 | 37 | $text = $this->interpolate($message, $context); |
| 38 | 38 | switch ($level) { |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | * @param array $context |
| 15 | 15 | * @return void |
| 16 | 16 | */ |
| 17 | - public function emergency(string|\Stringable $message, array $context = []): void |
|
| 17 | + public function emergency(string | \Stringable $message, array $context = []): void |
|
| 18 | 18 | { |
| 19 | 19 | $this->log(LogLevel::EMERGENCY, $message, $context); |
| 20 | 20 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @param array $context |
| 27 | 27 | * @return void |
| 28 | 28 | */ |
| 29 | - public function alert(string|\Stringable $message, array $context = []): void |
|
| 29 | + public function alert(string | \Stringable $message, array $context = []): void |
|
| 30 | 30 | { |
| 31 | 31 | $this->log(LogLevel::ALERT, $message, $context); |
| 32 | 32 | } |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | * @param array $context |
| 39 | 39 | * @return void |
| 40 | 40 | */ |
| 41 | - public function critical(string|\Stringable $message, array $context = []): void |
|
| 41 | + public function critical(string | \Stringable $message, array $context = []): void |
|
| 42 | 42 | { |
| 43 | 43 | $this->log(LogLevel::CRITICAL, $message, $context); |
| 44 | 44 | } |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * @param array $context |
| 52 | 52 | * @return void |
| 53 | 53 | */ |
| 54 | - public function error(string|\Stringable $message, array $context = []): void |
|
| 54 | + public function error(string | \Stringable $message, array $context = []): void |
|
| 55 | 55 | { |
| 56 | 56 | $this->log(LogLevel::ERROR, $message, $context); |
| 57 | 57 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * @param array $context |
| 64 | 64 | * @return void |
| 65 | 65 | */ |
| 66 | - public function warning(string|\Stringable $message, array $context = []): void |
|
| 66 | + public function warning(string | \Stringable $message, array $context = []): void |
|
| 67 | 67 | { |
| 68 | 68 | $this->log(LogLevel::WARNING, $message, $context); |
| 69 | 69 | } |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | * @param array $context |
| 76 | 76 | * @return void |
| 77 | 77 | */ |
| 78 | - public function notice(string|\Stringable $message, array $context = []): void |
|
| 78 | + public function notice(string | \Stringable $message, array $context = []): void |
|
| 79 | 79 | { |
| 80 | 80 | $this->log(LogLevel::NOTICE, $message, $context); |
| 81 | 81 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | * @param array $context |
| 88 | 88 | * @return void |
| 89 | 89 | */ |
| 90 | - public function info(string|\Stringable $message, array $context = []): void |
|
| 90 | + public function info(string | \Stringable $message, array $context = []): void |
|
| 91 | 91 | { |
| 92 | 92 | $this->log(LogLevel::INFO, $message, $context); |
| 93 | 93 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | * @param array $context |
| 100 | 100 | * @return void |
| 101 | 101 | */ |
| 102 | - public function debug(string|\Stringable $message, array $context = []): void |
|
| 102 | + public function debug(string | \Stringable $message, array $context = []): void |
|
| 103 | 103 | { |
| 104 | 104 | $this->log(LogLevel::DEBUG, $message, $context); |
| 105 | 105 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | * @param array $context |
| 112 | 112 | * @return string |
| 113 | 113 | */ |
| 114 | - protected function interpolate(string|\Stringable $message, array $context = []): string |
|
| 114 | + protected function interpolate(string | \Stringable $message, array $context = []): string |
|
| 115 | 115 | { |
| 116 | 116 | // build a replacement array with braces around the context keys |
| 117 | 117 | $replace = []; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | return strtr($message, $replace); |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | - public function log(mixed $level, string|\Stringable $message, array $context = []): void |
|
| 126 | + public function log(mixed $level, string | \Stringable $message, array $context = []): void |
|
| 127 | 127 | { |
| 128 | 128 | } |
| 129 | 129 | } |