@@ -55,7 +55,7 @@ |
||
55 | 55 | $context |
56 | 56 | ); |
57 | 57 | |
58 | - foreach ($this->listenedRegistry->getListeners() as $listener) { |
|
58 | + foreach ($this->listenedRegistry->getListeners() as $listener){ |
|
59 | 59 | call_user_func($listener, $e); |
60 | 60 | } |
61 | 61 | } |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function addListener(callable $listener): void |
26 | 26 | { |
27 | - if (!array_search($listener, $this->listeners, true)) { |
|
27 | + if (!array_search($listener, $this->listeners, true)){ |
|
28 | 28 | $this->listeners[] = $listener; |
29 | 29 | } |
30 | 30 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | public function removeListener(callable $listener): void |
36 | 36 | { |
37 | 37 | $key = array_search($listener, $this->listeners, true); |
38 | - if ($key !== null) { |
|
38 | + if ($key !== null){ |
|
39 | 39 | unset($this->listeners[$key]); |
40 | 40 | } |
41 | 41 | } |
@@ -41,7 +41,7 @@ |
||
41 | 41 | string $level, |
42 | 42 | string $message, |
43 | 43 | array $context = [] |
44 | - ) { |
|
44 | + ){ |
|
45 | 45 | $this->time = $time; |
46 | 46 | $this->channel = $channel; |
47 | 47 | $this->level = $level; |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | */ |
43 | 43 | protected function getLogger(string $channel = null): LoggerInterface |
44 | 44 | { |
45 | - if ($channel !== null) { |
|
45 | + if ($channel !== null){ |
|
46 | 46 | return $this->allocateLogger($channel); |
47 | 47 | } |
48 | 48 | |
49 | - if ($this->logger !== null) { |
|
49 | + if ($this->logger !== null){ |
|
50 | 50 | return $this->logger; |
51 | 51 | } |
52 | 52 | |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | private function allocateLogger(string $channel): LoggerInterface |
64 | 64 | { |
65 | 65 | $container = ContainerScope::getContainer(); |
66 | - if (empty($container) || !$container->has(LogsInterface::class)) { |
|
66 | + if (empty($container) || !$container->has(LogsInterface::class)){ |
|
67 | 67 | return $this->logger ?? new NullLogger(); |
68 | 68 | } |
69 | 69 |