@@ -29,11 +29,11 @@ |
||
| 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 | |
@@ -28,7 +28,7 @@ |
||
| 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']); |
@@ -76,7 +76,7 @@ |
||
| 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 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * @param $queueName |
|
| 29 | + * @param string $queueName |
|
| 30 | 30 | * @param QueueServiceInterface $queueService |
| 31 | 31 | * |
| 32 | 32 | * @return Queue |
@@ -33,7 +33,7 @@ |
||
| 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); |
@@ -8,6 +8,10 @@ discard block |
||
| 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 |
||
| 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 |
||
| 352 | 356 | } |
| 353 | 357 | |
| 354 | 358 | /** |
| 355 | - * @return string|mixed |
|
| 359 | + * @return string |
|
| 356 | 360 | */ |
| 357 | 361 | public function getQueue() |
| 358 | 362 | { |
@@ -8,6 +8,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 281 | 284 | } |
| 282 | 285 | |
| 283 | 286 | /** |
| 284 | - * @return string |
|
| 287 | + * @return boolean |
|
| 285 | 288 | */ |
| 286 | 289 | public function getType() |
| 287 | 290 | { |