Migrations\Shell\Task\MigrationDiffTask::checkSync PHP Метод

checkSync() защищенный Метод

Checks that the migrations history is in sync with the migrations files
protected checkSync ( ) : boolean
Результат boolean Whether migrations history is sync or not
    protected function checkSync()
    {
        if (empty($this->migrationsFiles) && empty($this->migratedItems)) {
            return true;
        }
        if (!empty($this->migratedItems)) {
            $lastVersion = $this->migratedItems[0]['version'];
            $lastFile = end($this->migrationsFiles);
            return (bool) strpos($lastFile, (string) $lastVersion);
        }
        return false;
    }