| @@ -53,7 +53,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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)); |