Changeset View
Changeset View
Standalone View
Standalone View
src/applications/nuance/github/NuanceGitHubRawEvent.php
Show First 20 Lines • Show All 158 Lines • ▼ Show 20 Lines | public function getURI() { | ||||
return $uri; | return $uri; | ||||
} | } | ||||
private function getRepositoryFullRawName() { | private function getRepositoryFullRawName() { | ||||
$raw = $this->raw; | $raw = $this->raw; | ||||
$full = idxv($raw, array('repo', 'name')); | $full = idxv($raw, array('repo', 'name')); | ||||
if (strlen($full)) { | if (phutil_nonempty_string($full)) { | ||||
return $full; | return $full; | ||||
} | } | ||||
// For issue events, the repository is not identified explicitly in the | // For issue events, the repository is not identified explicitly in the | ||||
// response body. Parse it out of the URI. | // response body. Parse it out of the URI. | ||||
$matches = null; | $matches = null; | ||||
$ok = preg_match( | $ok = preg_match( | ||||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |