src/Phinx/Db/Plan/Plan.php
protected function forgetTable(Table $table, $actions)
    {
        $result = [];
        foreach ($actions as $action) {
            if ($action->getTable()->getName() === $table->getName()) {
                continue;
            }
            $result[] = $action;
        }

        return $result;
    }
protected function forgetTable(Table $table, $actions)
    {
        $result = [];
        foreach ($actions as $action) {
            if ($action->getTable()->getName() === $table->getName()) {
                continue;
            }
            $result[] = $action;
        }

        return $result;
    }
protected function forgetTable ( Table $ table , $ actions ) { $ result = [ ] ; foreach ( $ actions as $ action ) { if ( $ action -> getTable ( ) -> getName ( ) === $ table -> getName ( ) ) { continue ; } $ result [ ] = $ action ; } return $ result ; }
Deletes all actions related to the given table and keeps the
rest

@param Table $table The table to find in the list of actions
@param AlterTable[] $actions The actions to transform
@return AlterTable[] The list of actions without actions for the given table
Deletes all actions related to the given table and keeps the rest