@@ -18,6 +18,9 @@ |
||
18 | 18 | return $consumer; |
19 | 19 | } |
20 | 20 | |
21 | + /** |
|
22 | + * @param string $queueName |
|
23 | + */ |
|
21 | 24 | protected function getQueueCallback($queueName) |
22 | 25 | { |
23 | 26 | $callbacks = $this->container->getParameter('kaliop_queueing_kinesis.default.consumers'); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | public function __construct(Cache $cacheService) |
16 | 16 | { |
17 | - $this->cache = $cacheService; |
|
17 | + $this->cache = $cacheService; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | /** |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | |
110 | 110 | $limit = ($amount > 0) ? $amount : $this->requestBatchSize; |
111 | 111 | |
112 | - while(true) { |
|
112 | + while (true) { |
|
113 | 113 | $reqTime = microtime(true); |
114 | 114 | $result = $this->client->getRecords(array( |
115 | 115 | 'ShardIterator' => $iterator, |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | $this->sequenceNumberStore->save($this->streamName, $this->shardId, $last['SequenceNumber']); |
124 | 124 | } |
125 | 125 | |
126 | - foreach($records as $record) { |
|
126 | + foreach ($records as $record) { |
|
127 | 127 | $data = $record['Data']; |
128 | 128 | unset($record['Data']); |
129 | 129 | $this->callback->receive(new Message($data, $record)); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | protected $properties = array(); |
11 | 11 | protected $contentType; |
12 | 12 | |
13 | - public function __construct($body, array $properties = array(), $contentType='application/json') |
|
13 | + public function __construct($body, array $properties = array(), $contentType = 'application/json') |
|
14 | 14 | { |
15 | 15 | $this->body = $body; |
16 | 16 | $this->properties = $properties; |
@@ -102,7 +102,7 @@ |
||
102 | 102 | */ |
103 | 103 | public function setContentType($contentType) |
104 | 104 | { |
105 | - if($contentType != 'application/json') { |
|
105 | + if ($contentType != 'application/json') { |
|
106 | 106 | throw new \Exception("Unsupported content-type for message serialization: $contentType. Only 'application/json' is supported"); |
107 | 107 | } |
108 | 108 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | return array('info', 'list', 'delete'); |
45 | 45 | } |
46 | 46 | |
47 | - public function executeAction($action, array $arguments=array()) |
|
47 | + public function executeAction($action, array $arguments = array()) |
|
48 | 48 | { |
49 | 49 | switch ($action) { |
50 | 50 | case 'delete': |