/** * Delete migration file if options is set * * @param string $migration * * @return null */ protected function deleteIfNeeded($migration) { if (!$this->input->getOption('delete')) { return; } if ($this->migrator->deleteMigrationFile($migration)) { $this->message("<info>Deleted:</info> {$migration}.php"); } }