Completed
Push — master ( 4f638f...f66822 )
by Gaetano
03:46
created
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.