@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | |
86 | 86 | $this->log( |
87 | 87 | LogLevel::INFO, |
88 | - "Dispatcher send message #{$message->getId()} with priority {$priority} to driver " . get_class($this->driver), |
|
88 | + "Dispatcher send message #{$message->getId()} with priority {$priority} to driver ".get_class($this->driver), |
|
89 | 89 | $this->messageLoggerContext($message) |
90 | 90 | ); |
91 | 91 | return $this; |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | public function handle(array $priorities = []): void |
106 | 106 | { |
107 | 107 | try { |
108 | - $this->driver->wait(function (MessageInterface $message, int $priority = Dispatcher::PRIORITY_MEDIUM) { |
|
108 | + $this->driver->wait(function(MessageInterface $message, int $priority = Dispatcher::PRIORITY_MEDIUM) { |
|
109 | 109 | $this->log( |
110 | 110 | LogLevel::INFO, |
111 | 111 | "Start handle message #{$message->getId()} ({$message->getType()}) priority:{$priority}", |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | } catch (Exception $e) { |
184 | 184 | $this->log( |
185 | 185 | LogLevel::ERROR, |
186 | - "Handler " . get_class($handler) . " throws exception - {$e->getMessage()}", |
|
186 | + "Handler ".get_class($handler)." throws exception - {$e->getMessage()}", |
|
187 | 187 | ['error' => $e, 'message' => $this->messageLoggerContext($message), 'exception' => $e] |
188 | 188 | ); |
189 | 189 | if (Debugger::isEnabled()) { |
@@ -119,7 +119,7 @@ |
||
119 | 119 | } |
120 | 120 | } |
121 | 121 | if ($this->redis instanceof Redis) { |
122 | - $messagesString = $this->redis->zRangeByScore($this->scheduleKey, '-inf', (string)microtime(true), ['limit' => [0, 1]]); |
|
122 | + $messagesString = $this->redis->zRangeByScore($this->scheduleKey, '-inf', (string) microtime(true), ['limit' => [0, 1]]); |
|
123 | 123 | if (count($messagesString)) { |
124 | 124 | foreach ($messagesString as $messageString) { |
125 | 125 | $this->redis->zRem($this->scheduleKey, $messageString); |