@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | return array_map( |
| 27 | 27 | $this->redis->keys('*'), |
| 28 | - function ($key) { |
|
| 28 | + function($key) { |
|
| 29 | 29 | return str_replace("{$this->namespace}:", ''); |
| 30 | 30 | } |
| 31 | 31 | ); |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | { |
| 36 | 36 | $redis = $this->redis; |
| 37 | 37 | $queueKey = $this->redisKeyForQueue($queueName); |
| 38 | - $this->redis->pipeline(function () use ($redis, $queueKey, $json) { |
|
| 38 | + $this->redis->pipeline(function() use ($redis, $queueKey, $json) { |
|
| 39 | 39 | $redis->sadd('queues', $queueName); |
| 40 | 40 | $redis->rpush($queueKey, $json); |
| 41 | 41 | }); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | { |
| 76 | 76 | $redis = $this->redis; |
| 77 | 77 | $that = $this; |
| 78 | - $this->redis->pipeline(function () use ($redis, $workerId, $that) { |
|
| 78 | + $this->redis->pipeline(function() use ($redis, $workerId, $that) { |
|
| 79 | 79 | $redis->sadd("workers", $workerId); |
| 80 | 80 | $that->workerStarted($workerId); |
| 81 | 81 | }); |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | { |
| 86 | 86 | $redis = $this->redis; |
| 87 | 87 | $that = $this; |
| 88 | - $redis->pipeline(function () use ($redis, $workerId, $that) { |
|
| 88 | + $redis->pipeline(function() use ($redis, $workerId, $that) { |
|
| 89 | 89 | $redis->srem("workers", $workerId); |
| 90 | 90 | $redis->del($that->redisKeyForWorker($workerId)); |
| 91 | 91 | $redis->del($that->redisKeyForWorkerStartTime($workerId)); |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | { |
| 168 | 168 | $redis = $this->redis; |
| 169 | 169 | $workerKey = $this->redisKeyForWorker($workerId); |
| 170 | - $this->redis->pipeline(function () use ($redis, $workerKey, $block) { |
|
| 170 | + $this->redis->pipeline(function() use ($redis, $workerKey, $block) { |
|
| 171 | 171 | $redis->del($workerKey); |
| 172 | 172 | $block(); |
| 173 | 173 | }); |