Code Duplication    Length = 10-10 lines in 2 locations

src/EventSourcing/DBAL/AggregateAwareDBALEventStore.php 1 location

@@ 230-239 (lines=10) @@
227
     * @param $row
228
     * @return DomainMessage
229
     */
230
    private function deserializeEvent($row)
231
    {
232
        return new DomainMessage(
233
            $row['uuid'],
234
            $row['playhead'],
235
            $this->metadataSerializer->deserialize(json_decode($row['metadata'], true)),
236
            $this->payloadSerializer->deserialize(json_decode($row['payload'], true)),
237
            BroadwayDateTime::fromString($row['recorded_on'])
238
        );
239
    }
240
241
    /**
242
     * @param $id

src/EventSourcing/DBAL/EventStream.php 1 location

@@ 168-177 (lines=10) @@
165
     * @param $row
166
     * @return DomainMessage
167
     */
168
    private function deserializeEvent($row)
169
    {
170
        return new DomainMessage(
171
            $row['uuid'],
172
            $row['playhead'],
173
            $this->metadataSerializer->deserialize(json_decode($row['metadata'], true)),
174
            $this->payloadSerializer->deserialize(json_decode($row['payload'], true)),
175
            DateTime::fromString($row['recorded_on'])
176
        );
177
    }
178
}
179