@@ -169,7 +169,7 @@ |
||
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
172 | - * @return mixed |
|
172 | + * @return Table |
|
173 | 173 | */ |
174 | 174 | public function configureTable() |
175 | 175 | { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $this->guardStream($eventStream); |
100 | 100 | |
101 | 101 | // Make the transaction more robust by using the transactional statement. |
102 | - $this->connection->transactional(function (Connection $connection) use ($eventStream) { |
|
102 | + $this->connection->transactional(function(Connection $connection) use ($eventStream) { |
|
103 | 103 | try { |
104 | 104 | foreach ($eventStream as $domainMessage) { |
105 | 105 | $this->insertMessage($connection, $domainMessage); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | private function insertMessage(Connection $connection, DomainMessage $domainMessage) |
118 | 118 | { |
119 | 119 | $data = array( |
120 | - 'uuid' => (string) $domainMessage->getId(), |
|
120 | + 'uuid' => (string)$domainMessage->getId(), |
|
121 | 121 | 'playhead' => $domainMessage->getPlayhead(), |
122 | 122 | 'metadata' => json_encode($this->metadataSerializer->serialize($domainMessage->getMetadata())), |
123 | 123 | 'payload' => json_encode($this->payloadSerializer->serialize($domainMessage->getPayload())), |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | { |
212 | 212 | foreach ($eventStream as $domainMessage) { |
213 | 213 | /** @var DomainMessage $domainMessage */ |
214 | - $id = (string) $domainMessage->getId(); |
|
214 | + $id = (string)$domainMessage->getId(); |
|
215 | 215 | } |
216 | 216 | } |
217 | 217 | } |
@@ -174,7 +174,7 @@ |
||
174 | 174 | ] |
175 | 175 | ) |
176 | 176 | ->from($this->tableName) |
177 | - ->where($this->primaryKey . ' > :previousId') |
|
177 | + ->where($this->primaryKey.' > :previousId') |
|
178 | 178 | ->orderBy($this->primaryKey, 'ASC') |
179 | 179 | ->setMaxResults(1); |
180 | 180 |