Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 263-271 (lines=9) @@
260
    /**
261
     * @return bool
262
     */
263
    public function initialized()
264
    {
265
        try {
266
            $result = $this->connection->query('SELECT 1 FROM `'.self::STREAMS_TABLE.'` LIMIT 1');
267
        } catch (\Exception $e) {
268
            return false;
269
        }
270
        return $result !== false;
271
    }
272
}
273

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