Code Duplication    Length = 9-9 lines in 2 locations

src/EventSourcing/Snapshotting/Vendor/MySqlJsonSnapshotStore.php 1 location

@@ 103-111 (lines=9) @@
100
    /**
101
     * @return bool
102
     */
103
    public function initialized()
104
    {
105
        try {
106
            $result = $this->connection->query('SELECT 1 FROM `'.self::SNAPSHOTS_TABLE.'` LIMIT 1');
107
        } catch (\Exception $e) {
108
            return false;
109
        }
110
        return $result !== false;
111
    }
112
}
113

src/EventSourcing/EventStore/Vendor/MySqlJsonEventStore.php 1 location

@@ 274-282 (lines=9) @@
271
    /**
272
     * @return bool
273
     */
274
    public function initialized()
275
    {
276
        try {
277
            $result = $this->connection->query('SELECT 1 FROM `'.self::STREAMS_TABLE.'` LIMIT 1');
278
        } catch (\Exception $e) {
279
            return false;
280
        }
281
        return $result !== false;
282
    }
283
284
    /**
285
     * @param string $streamId