| @@ -44,7 +44,7 @@ | ||
| 44 | 44 | |
| 45 | 45 | $this->log( | 
| 46 | 46 | LogLevel::INFO, | 
| 47 | -            "Dispatcher send message #{$message->getId()} to driver " . get_class($this->driver), | |
| 47 | +            "Dispatcher send message #{$message->getId()} to driver ".get_class($this->driver), | |
| 48 | 48 | $this->messageLoggerContext($message) | 
| 49 | 49 | ); | 
| 50 | 50 | return $this; | 
| @@ -64,7 +64,7 @@ | ||
| 64 | 64 | false, | 
| 65 | 65 | false, | 
| 66 | 66 | false, | 
| 67 | -            function ($rabbitMessage) use ($callback) { | |
| 67 | +            function($rabbitMessage) use ($callback) { | |
| 68 | 68 | $message = $this->serializer->unserialize($rabbitMessage->body); | 
| 69 | 69 | $callback($message); | 
| 70 | 70 | $rabbitMessage->delivery_info['channel']->basic_ack($rabbitMessage->delivery_info['delivery_tag']); | 
| @@ -69,7 +69,7 @@ | ||
| 69 | 69 | true, | 
| 70 | 70 | false, | 
| 71 | 71 | false, | 
| 72 | -                function ($rabbitMessage) use ($callback) { | |
| 72 | +                function($rabbitMessage) use ($callback) { | |
| 73 | 73 | $message = $this->serializer->unserialize($rabbitMessage->body); | 
| 74 | 74 | $callback($message); | 
| 75 | 75 | } | 
| @@ -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); |