Completed
Pull Request — master (#255)
by Kristof
07:13
created
src/EventSourcing/DBAL/AggregateAwareDBALEventStore.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
     }
170 170
 
171 171
     /**
172
-     * @return mixed
172
+     * @return Table
173 173
      */
174 174
     public function configureTable()
175 175
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         $this->payloadSerializer  = $payloadSerializer;
71 71
         $this->metadataSerializer = $metadataSerializer;
72 72
         $this->tableName          = $tableName;
73
-        $this->aggregateType      = (string) $aggregateType;
73
+        $this->aggregateType      = (string)$aggregateType;
74 74
     }
75 75
 
76 76
     /**
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $this->guardStream($eventStream);
106 106
 
107 107
         // Make the transaction more robust by using the transactional statement.
108
-        $this->connection->transactional(function (Connection $connection) use ($eventStream) {
108
+        $this->connection->transactional(function(Connection $connection) use ($eventStream) {
109 109
             try {
110 110
                 foreach ($eventStream as $domainMessage) {
111 111
                     $this->insertMessage($connection, $domainMessage);
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     private function insertMessage(Connection $connection, DomainMessage $domainMessage)
124 124
     {
125 125
         $data = array(
126
-            'uuid'           => (string) $domainMessage->getId(),
126
+            'uuid'           => (string)$domainMessage->getId(),
127 127
             'playhead'       => $domainMessage->getPlayhead(),
128 128
             'metadata'       => json_encode($this->metadataSerializer->serialize($domainMessage->getMetadata())),
129 129
             'payload'        => json_encode($this->payloadSerializer->serialize($domainMessage->getPayload())),
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
     {
229 229
         foreach ($eventStream as $domainMessage) {
230 230
             /** @var DomainMessage $domainMessage */
231
-            $id = (string) $domainMessage->getId();
231
+            $id = (string)$domainMessage->getId();
232 232
         }
233 233
     }
234 234
 }
Please login to merge, or discard this patch.