protected function pendingMigrations(array $files, array $ran): array
    {
        $array = [];
        foreach ($files as $file) {
            if (! in_array($this->getMigrationName($file), $ran, true)) {
                $array[] = $file;
            }
        }

        return $array;
    }