Code Duplication    Length = 7-7 lines in 2 locations

src/storage/subscriber.php 2 locations

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