@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | final class RedisDriver implements QueueDriverInterface, SchedulerDriverInterface |
15 | 15 | { |
16 | 16 | |
17 | - const LUA_PATH = __DIR__ . '/../../lua'; |
|
17 | + const LUA_PATH = __DIR__.'/../../lua'; |
|
18 | 18 | |
19 | 19 | private $adapter; |
20 | 20 | private $namespace; |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | public function queueCommand(string $queueName, string $commandId, string $serialized) |
32 | 32 | { |
33 | - $this->evalScript('queue_message', [$this->namespace, $queueName, $commandId, $serialized]); |
|
33 | + $this->evalScript('queue_message', [ $this->namespace, $queueName, $commandId, $serialized ]); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | public function awaitCommand(string $queueName, int $timeout = null): ReceivedCommand |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $id = null; |
48 | 48 | } |
49 | 49 | if (!empty($id)) { |
50 | - $serialized = $this->evalScript('receive_message', [$this->namespace, $queueName, $id]); |
|
50 | + $serialized = $this->evalScript('receive_message', [ $this->namespace, $queueName, $id ]); |
|
51 | 51 | if (!empty($serialized)) { |
52 | 52 | return new ReceivedCommand($queueName, $id, $serialized); |
53 | 53 | } |
@@ -112,19 +112,19 @@ discard block |
||
112 | 112 | |
113 | 113 | public function deleteQueue(string $queueName) |
114 | 114 | { |
115 | - $this->evalScript('empty_queue', [$this->namespace, $queueName]); |
|
115 | + $this->evalScript('empty_queue', [ $this->namespace, $queueName ]); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | public function purgeCommand(string $queueName, string $id) |
119 | 119 | { |
120 | - $this->evalScript('purge_message', [$this->namespace, $queueName, $id]); |
|
120 | + $this->evalScript('purge_message', [ $this->namespace, $queueName, $id ]); |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | public function scheduleCommand(string $queueName, string $id, string $serialized, \DateTime $dateTime) |
124 | 124 | { |
125 | 125 | $this->evalScript( |
126 | 126 | 'schedule_message', |
127 | - [$this->namespace, $queueName, $id, $serialized, $dateTime->getTimestamp()] |
|
127 | + [ $this->namespace, $queueName, $id, $serialized, $dateTime->getTimestamp() ] |
|
128 | 128 | ); |
129 | 129 | } |
130 | 130 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | |
193 | 193 | public function purgeNamespace() |
194 | 194 | { |
195 | - $this->evalScript('purge_namespace', [$this->namespace]); |
|
195 | + $this->evalScript('purge_namespace', [ $this->namespace ]); |
|
196 | 196 | } |
197 | 197 | |
198 | 198 | private function evalScript(string $script, array $args) |
@@ -202,6 +202,6 @@ discard block |
||
202 | 202 | |
203 | 203 | private function getScriptPath(string $script): string |
204 | 204 | { |
205 | - return self::LUA_PATH . '/' . $script . '.lua'; |
|
205 | + return self::LUA_PATH.'/'.$script.'.lua'; |
|
206 | 206 | } |
207 | 207 | } |