public function getGitDir() { if (null !== $this->topDir) { return $this->topDir; } $this->topDir = $this->processHelper->runCommand(['git', 'rev-parse', '--show-toplevel']); return $this->topDir; }