Completed
Branch master (72a4cd)
by Adam
03:13 queued 52s
created
src/Driver/RedisDriver.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     private $redis;
13 13
 
14 14
     /**
15
-     * @param Redis $redis
15
+     * @param \PHPUnit_Framework_MockObject_MockObject $redis
16 16
      */
17 17
     public function __construct(Redis $redis)
18 18
     {
Please login to merge, or discard this patch.
example/consumer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__ . '/../vendor/autoload.php';
3
+require __DIR__.'/../vendor/autoload.php';
4 4
 require 'ExampleJob.php';
5 5
 
6 6
 use Equip\Queue\Driver\RedisDriver;
Please login to merge, or discard this patch.
tests/WorkerTest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $name = 'test';
44 44
         $routes = [
45
-            $name => function () {},
45
+            $name => function() {},
46 46
         ];
47 47
 
48 48
         $method = static::getProtectedMethod($this->worker, 'getHandler');
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             $this->driver,
125 125
             $this->event,
126 126
             $this->serializer,
127
-            ['foo' => function () use ($exception) { throw $exception; }]
127
+            ['foo' => function() use ($exception) { throw $exception; }]
128 128
         );
129 129
 
130 130
         $method = static::getProtectedMethod($worker, 'tick');
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             $this->driver,
151 151
             $this->event,
152 152
             $this->serializer,
153
-            ['foo' => function () { return false; }]
153
+            ['foo' => function() { return false; }]
154 154
         );
155 155
 
156 156
         $method = static::getProtectedMethod($worker, 'tick');
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
             $this->event,
178 178
             $this->serializer,
179 179
             [
180
-                'foo' => function ($data) use ($message) {
180
+                'foo' => function($data) use ($message) {
181 181
                     $this->assertSame($message->handler(), $data->handler());
182 182
                 }
183 183
             ]
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             $this->driver,
207 207
             $this->event,
208 208
             $this->serializer,
209
-            ['foo' => function () { return false; }]
209
+            ['foo' => function() { return false; }]
210 210
         );
211 211
 
212 212
         $worker->consume($message->queue());
Please login to merge, or discard this patch.
src/Worker.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     {
70 70
         $packet = $this->driver->pop($queue);
71 71
         if (empty($packet)) {
72
-             return true;
72
+                return true;
73 73
         }
74 74
 
75 75
         $message = $this->serializer->deserialize($packet);
Please login to merge, or discard this patch.
src/Event.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function acknowledge(Message $message)
32 32
     {
33
-        array_map(function ($name) use ($message) {
33
+        array_map(function($name) use ($message) {
34 34
             $this->emitter->emit($name, $message);
35 35
         }, [
36 36
             static::QUEUE_ACKNOWLEDGE,
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function reject(Message $message, Exception $exception)
48 48
     {
49
-        array_map(function ($name) use ($message, $exception) {
49
+        array_map(function($name) use ($message, $exception) {
50 50
             $this->emitter->emit($name, $message, $exception);
51 51
         }, [
52 52
             static::QUEUE_REJECT,
Please login to merge, or discard this patch.
example/producer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-require __DIR__ . '/../vendor/autoload.php';
3
+require __DIR__.'/../vendor/autoload.php';
4 4
 require 'ExampleJob.php';
5 5
 
6 6
 use Equip\Queue\Driver\RedisDriver;
Please login to merge, or discard this patch.