yupe\components\Migrator::checkForUpdates PHP Method

checkForUpdates() public method

Check each modules for new migrations
public checkForUpdates ( array $modules ) : mixed
$modules array - list of modules
return mixed new migrations
    public function checkForUpdates(array $modules)
    {
        $updates = [];
        foreach ($modules as $mid => $module) {
            if ($a = $this->getNewMigrations($mid)) {
                $updates[$mid] = $a;
            }
        }
        return $updates;
    }