Completed
Push — master ( f66822...7bafbd )
by Gaetano
03:48
created
Adapter/Kinesis/Consumer.php 1 patch
Spacing   +4 added lines, -4 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;
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      * @param int $timeout
108 108
      * @return nothing
109 109
      */
110
-    public function consume($amount, $timeout=0)
110
+    public function consume($amount, $timeout = 0)
111 111
     {
112 112
         $iterator = $this->getInitialMessageIterator();
113 113
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             $remaining = $timeout;
118 118
         }
119 119
 
120
-        while(true) {
120
+        while (true) {
121 121
             $reqTime = microtime(true);
122 122
             $result = $this->client->getRecords(array(
123 123
                 'ShardIterator' => $iterator,
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                 $this->sequenceNumberStore->save($this->streamName, $this->shardId, $last['SequenceNumber']);
132 132
             }
133 133
 
134
-            foreach($records as $record) {
134
+            foreach ($records as $record) {
135 135
                 $data = $record['Data'];
136 136
                 unset($record['Data']);
137 137
                 $this->callback->receive(new Message($data, $record));
Please login to merge, or discard this patch.