Completed
Push — master ( f7eab0...8af4aa )
by Gaetano
85:25
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/Consumer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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));
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/Producer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
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
 
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.