Completed
Pull Request — master (#255)
by Kristof
09:12 queued 03:11
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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/EventSourcing/DBAL/EventStream.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.