Completed
Push — master ( 4f638f...f66822 )
by Gaetano
03:46
created
Adapter/Kinesis/Driver.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
Service/DoctrineCacheSequenceNumberStore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Adapter/Kinesis/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Adapter/Kinesis/QueueManager.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
         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':
Please login to merge, or discard this patch.
Adapter/Kinesis/Producer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     public function batchPublish(array $messages)
71 71
     {
72 72
         $records = aray();
73
-        foreach($messages as $message) {
73
+        foreach ($messages as $message) {
74 74
             $records[] = array(
75 75
                 'Data' => $message['msgBody'],
76 76
                 'PartitionKey' => $message['routingKey']
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function setContentType($contentType)
123 123
     {
124
-        if($contentType != 'application/json') {
124
+        if ($contentType != 'application/json') {
125 125
             throw new \Exception("Unsupported content-type for message serialization: $contentType. Only 'application/json' is supported");
126 126
         }
127 127
 
Please login to merge, or discard this patch.
Adapter/Kinesis/Consumer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function setCallback($callback)
55 55
     {
56
-        if (! $callback instanceof \Kaliop\QueueingBundle\Queue\MessageConsumerInterface) {
56
+        if (!$callback instanceof \Kaliop\QueueingBundle\Queue\MessageConsumerInterface) {
57 57
             throw new \RuntimeException('Can not set callback to SQS Consumer, as it is not a MessageConsumerInterface');
58 58
         }
59 59
         $this->callback = $callback;
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
         $limit = ($amount > 0) ? $amount : $this->requestBatchSize;
114 114
 
115
-        while(true) {
115
+        while (true) {
116 116
             $reqTime = microtime(true);
117 117
             $result = $this->client->getRecords(array(
118 118
                 'ShardIterator' => $iterator,
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 $this->sequenceNumberStore->save($this->streamName, $this->shardId, $last['SequenceNumber']);
127 127
             }
128 128
 
129
-            foreach($records as $record) {
129
+            foreach ($records as $record) {
130 130
                 $data = $record['Data'];
131 131
                 unset($record['Data']);
132 132
                 $this->callback->receive(new Message($data, $record));
Please login to merge, or discard this patch.