Completed
Push — master ( 0db478...248a24 )
by Daniel
11:06
created
Transport/Rpc/RpcQueueCallback.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@
 block discarded – undo
29 29
      */
30 30
     public function toClosure()
31 31
     {
32
-        return function (AMQPMessage $message) {
32
+        return function(AMQPMessage $message) {
33 33
             $response = $this->getQueueService()->handle($message);
34 34
 
35 35
             $amqpResponse = new CmobiAMQPMessage(
36
-                (string) $response,
36
+                (string)$response,
37 37
                 ['correlation_id' => $message->get('correlation_id')]
38 38
             );
39 39
 
Please login to merge, or discard this patch.
Transport/PubSub/SubscriberQueueCallback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function toClosure()
30 30
     {
31
-        return function (AMQPMessage $message) {
31
+        return function(AMQPMessage $message) {
32 32
             $this->getQueueService()->handle($message);
33 33
 
34 34
             $message->delivery_info['channel']->basic_ack($message->delivery_info['delivery_tag']);
Please login to merge, or discard this patch.
Tests/Queue/QueueTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             ->disableOriginalConstructor()
77 77
             ->getMock();
78 78
         $callbackMock->method('toClosure')
79
-            ->willReturn(function () {});
79
+            ->willReturn(function() {});
80 80
 
81 81
         return $callbackMock;
82 82
     }
Please login to merge, or discard this patch.
Transport/PubSub/SubscriberBuilder.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     }
27 27
 
28 28
     /**
29
-     * @param $queueName
29
+     * @param string $queueName
30 30
      * @param QueueServiceInterface $queueService
31 31
      *
32 32
      * @return Queue
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function buildQueue($queueName, QueueServiceInterface $queueService, QueueBagInterface $queueBag)
35 35
     {
36
-        if (! $queueBag instanceof SubscriberQueueBag) {
36
+        if (!$queueBag instanceof SubscriberQueueBag) {
37 37
             throw new \Exception('Unsupported QueueBag');
38 38
         }
39 39
         $queue = new Queue($this->getConnectionManager(), $queueBag, $this->logger);
Please login to merge, or discard this patch.
Transport/PubSub/SubscriberQueueBag.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,6 +8,10 @@  discard block
 block discarded – undo
8 8
 {
9 9
     private $options;
10 10
 
11
+    /**
12
+     * @param string $exchange
13
+     * @param string $queueName
14
+     */
11 15
     public function __construct(
12 16
         $exchange,
13 17
         $type = ExchangeType::FANOUT,
@@ -55,7 +59,7 @@  discard block
 block discarded – undo
55 59
     }
56 60
 
57 61
     /**
58
-     * @return string|mixed
62
+     * @return string
59 63
      */
60 64
     public function getExchange()
61 65
     {
@@ -352,7 +356,7 @@  discard block
 block discarded – undo
352 356
     }
353 357
 
354 358
     /**
355
-     * @return string|mixed
359
+     * @return string
356 360
      */
357 361
     public function getQueue()
358 362
     {
Please login to merge, or discard this patch.
Transport/Worker/WorkerQueueBag.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@  discard block
 block discarded – undo
8 8
 {
9 9
     private $options;
10 10
 
11
+    /**
12
+     * @param string $queue
13
+     */
11 14
     public function __construct(
12 15
         $queue,
13 16
         $basicQos = 1,
@@ -273,7 +276,7 @@  discard block
 block discarded – undo
273 276
     }
274 277
 
275 278
     /**
276
-     * @return string
279
+     * @return boolean
277 280
      */
278 281
     public function getExchange()
279 282
     {
@@ -281,7 +284,7 @@  discard block
 block discarded – undo
281 284
     }
282 285
 
283 286
     /**
284
-     * @return string
287
+     * @return boolean
285 288
      */
286 289
     public function getType()
287 290
     {
Please login to merge, or discard this patch.