private function hasUnmigratedVersions()
    {
        $needsToRun = false;

        foreach ($this->availableVersions as $migration) {
            $isTargetMigrated = in_array($migration->getVersion(), $this->migratedVersions);

            if ($isTargetMigrated) {
                continue;
            }

            $needsToRun = true;
            break;
        }

        return $needsToRun;
    }
private function hasUnmigratedVersions()
    {
        $needsToRun = false;

        foreach ($this->availableVersions as $migration) {
            $isTargetMigrated = in_array($migration->getVersion(), $this->migratedVersions);

            if ($isTargetMigrated) {
                continue;
            }

            $needsToRun = true;
            break;
        }

        return $needsToRun;
    }
private function hasUnmigratedVersions ( ) { $ needsToRun = false ; foreach ( $ this -> availableVersions as $ migration ) { $ isTargetMigrated = in_array ( $ migration -> getVersion ( ) , $ this -> migratedVersions ) ; if ( $ isTargetMigrated ) { continue ; } $ needsToRun = true ; break ; } return $ needsToRun ; }
Flags if unmigrated versions exists

@return bool
Flags if unmigrated versions exists