public function getAll() { $checkpointDir = $this->locator->getCheckpointDir(); $content = $this->fsHelper->isDir($checkpointDir) ? $this->fsHelper->scandir($checkpointDir) : []; $checkpoints = array_filter($content, function ($dir) { return !in_array($dir, ['.', '..']); }); return $checkpoints; }