| @@ -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 | } |