Code Duplication    Length = 7-7 lines in 2 locations

src/storage/subscriber.php 2 locations

@@ 209-215 (lines=7) @@
206
            return;
207
        }
208
209
        if (!empty($options['indexes'])) {
210
            foreach ($options['indexes'] as $indexDef) {
211
                $args->addSql($platform->getCreateIndexSQL($indexDef, $name));
212
            }
213
        }
214
215
        if (!empty($options['unique'])) {
216
            foreach ($options['unique'] as $indexDef) {
217
                $args->addSql($platform->getCreateIndexSQL($indexDef, $name));
218
            }
@@ 215-221 (lines=7) @@
212
            }
213
        }
214
215
        if (!empty($options['unique'])) {
216
            foreach ($options['unique'] as $indexDef) {
217
                $args->addSql($platform->getCreateIndexSQL($indexDef, $name));
218
            }
219
        }
220
    }
221
222
    /**
223
     * This function contains workarounds for reading existing Midgard databases
224
     *