/** * Gets service status * * @param $service The service to check * @return string A description of the issue if something is wrong; otherwise, "✓". */ protected function getServiveStatus($service) { if ($service->gate === 'Phabricator') { // Ensure the projects map is cached $map = \ProjectsMap::fetch($service->door); if (!$map->isCached()) { return "Projects map not cached."; } } return "✓"; }
/** * Fetches projects map from API. * * @param string $instanceName The Phabricator instance name * @return Nasqueron\Notifications\Phabricator\ProjectsMap */ public function fetch($instanceName) { return ProjectsMap::fetch($instanceName); }