Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/github/NuanceGitHubRawEvent.php
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | public function getID() { | ||||
$id = idx($raw, 'id'); | $id = idx($raw, 'id'); | ||||
if ($id) { | if ($id) { | ||||
return (int)$id; | return (int)$id; | ||||
} | } | ||||
return null; | return null; | ||||
} | } | ||||
public function getComment() { | |||||
return 'TODO: Actually extract comment text.'; | |||||
} | |||||
public function getURI() { | public function getURI() { | ||||
$raw = $this->raw; | $raw = $this->raw; | ||||
if ($this->isIssueEvent() || $this->isPullRequestEvent()) { | if ($this->isIssueEvent() || $this->isPullRequestEvent()) { | ||||
if ($this->type == self::TYPE_ISSUE) { | if ($this->type == self::TYPE_ISSUE) { | ||||
$uri = idxv($raw, array('issue', 'html_url')); | $uri = idxv($raw, array('issue', 'html_url')); | ||||
$uri = $uri.'#event-'.$this->getID(); | $uri = $uri.'#event-'.$this->getID(); | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |