Code Duplication    Length = 4-4 lines in 2 locations

src/Commands/DataCommand.php 2 locations

@@ 148-151 (lines=4) @@
145
        $path   = $options[static::OPT_PATH] ?? false;
146
        $action = $arguments[static::ARG_ACTION];
147
        switch ($action) {
148
            case static::ACTION_MIGRATE:
149
                $path = $path !== false ? $path : $settings[DataSettings::KEY_MIGRATIONS_LIST_FILE] ?? '';
150
                $this->createMigrationRunner($inOut, $path)->migrate($container);
151
                break;
152
            case static::ACTION_ROLLBACK:
153
                $path = $path !== false ? $path : $settings[DataSettings::KEY_MIGRATIONS_LIST_FILE] ?? '';
154
                $this->createMigrationRunner($inOut, $path)->rollback($container);
@@ 152-155 (lines=4) @@
149
                $path = $path !== false ? $path : $settings[DataSettings::KEY_MIGRATIONS_LIST_FILE] ?? '';
150
                $this->createMigrationRunner($inOut, $path)->migrate($container);
151
                break;
152
            case static::ACTION_ROLLBACK:
153
                $path = $path !== false ? $path : $settings[DataSettings::KEY_MIGRATIONS_LIST_FILE] ?? '';
154
                $this->createMigrationRunner($inOut, $path)->rollback($container);
155
                break;
156
            case static::ACTION_SEED:
157
                $path     = $path !== false ? $path : $settings[DataSettings::KEY_SEEDS_LIST_FILE] ?? '';
158
                $seedInit = $settings[DataSettings::KEY_SEED_INIT] ?? null;