public function getScore($file) { $mutants = $this->getMutants($file); $survivors = $this->getSurvivors($file); if ($mutants->count() === 0) { return '--'; } return 100 - ceil($survivors->count() / $mutants->count() * 100); }