src/Commands/RollbackCommand.php
protected function deleteIfNeeded($migration)
    {
        if (!$this->input->getOption('delete')) {
            return;
        }

        if ($this->migrator->deleteMigrationFile($migration)) {
            $this->message("<info>Deleted:</info> {$migration}.php");
        }
    }
protected function deleteIfNeeded($migration)
    {
        if (!$this->input->getOption('delete')) {
            return;
        }

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

@param string $migration

@return null
Delete migration file if options is set