/** * @param Tag $t * @param Activity $activity * @return string */ private function renderObjectName($t, $activity) { if ($activity->getIssue() !== null) { /** @noinspection PhpMethodParametersCountMismatchInspection */ return $t->a(a::style('font-weight: bold;'), a::href('/issue/' . $activity->getIssue()->getNumber()), $activity->getIssue()->getNumber()); } else { if ($activity->getWikiPage() !== null) { /** @noinspection PhpMethodParametersCountMismatchInspection */ return $t->a(a::style('font-weight: bold;'), a::href('/wiki/' . $activity->getWikiPage()->getId()), $activity->getWikiPage()->getName()); } } }