Test Failed
Pull Request — master (#1)
by noitran
08:56
created
src/HorizonServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     {
45 45
         $queue = $this->app['queue'];
46 46
 
47
-        $queue->addConnector('rabbitmq', function () {
47
+        $queue->addConnector('rabbitmq', function() {
48 48
             return new RabbitMQConnector($this->app['events']);
49 49
         });
50 50
     }
Please login to merge, or discard this patch.
src/Connectors/RabbitMQConnector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
         /** @var AmqpContext $context */
78 78
         $context = $factory->createContext();
79 79
 
80
-        $this->dispatcher->listen(WorkerStopping::class, function () use ($context): void {
80
+        $this->dispatcher->listen(WorkerStopping::class, function() use ($context): void {
81 81
             $context->close();
82 82
         });
83 83
 
Please login to merge, or discard this patch.
src/RabbitMQQueue.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     {
51 51
         $payload = (new JobPayload($payload))->prepare($this->lastPushed)->value;
52 52
 
53
-        return tap(parent::pushRaw($payload, $queue, $options), function () use ($queue, $payload): void {
53
+        return tap(parent::pushRaw($payload, $queue, $options), function() use ($queue, $payload): void {
54 54
             $this->event($this->getQueue($queue), new JobPushed($payload));
55 55
         });
56 56
     }
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             'delay' => $this->secondsUntil($delay),
67 67
         ];
68 68
 
69
-        return tap(parent::pushRaw($payload, $queue, $options), function () use ($payload, $queue): void {
69
+        return tap(parent::pushRaw($payload, $queue, $options), function() use ($payload, $queue): void {
70 70
             $this->event($this->getQueue($queue), new JobPushed($payload));
71 71
         });
72 72
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function pop($queue = null)
96 96
     {
97
-        return tap($this->popRaw($queue), function ($result) use ($queue): void {
97
+        return tap($this->popRaw($queue), function($result) use ($queue): void {
98 98
             if ($result) {
99 99
                 $this->event($this->getQueue($queue), new JobReserved($result->getRawBody()));
100 100
             }
Please login to merge, or discard this patch.
tests/RabbitMQQueueTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
             ->expects($this->once())
22 22
             ->method('send')
23 23
             ->with($this->identicalTo($topic), $this->isInstanceOf(AmqpMessage::class))
24
-            ->willReturnCallback(function ($actualTopic, AmqpMessage $message) use ($expectedQueueName, $expectedBody, $topic) {
24
+            ->willReturnCallback(function($actualTopic, AmqpMessage $message) use ($expectedQueueName, $expectedBody, $topic) {
25 25
                 $this->assertSame($topic, $actualTopic);
26 26
                 $this->assertSame($expectedBody, $message->getBody());
27 27
                 $this->assertSame($expectedQueueName, $message->getRoutingKey());
Please login to merge, or discard this patch.