Differential D15940 Diff 38379 src/applications/repository/storage/PhabricatorRepositoryAuditRequest.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryAuditRequest.php
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Lines | public function attachCommit(PhabricatorRepositoryCommit $commit) { | ||||
$this->commit = $commit; | $this->commit = $commit; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function getCommit() { | public function getCommit() { | ||||
return $this->assertAttached($this->commit); | return $this->assertAttached($this->commit); | ||||
} | } | ||||
public function isInteresting() { | |||||
switch ($this->getAuditStatus()) { | |||||
case PhabricatorAuditStatusConstants::NONE: | |||||
case PhabricatorAuditStatusConstants::AUDIT_NOT_REQUIRED: | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
/* -( PhabricatorPolicyInterface )----------------------------------------- */ | /* -( PhabricatorPolicyInterface )----------------------------------------- */ | ||||
public function getCapabilities() { | public function getCapabilities() { | ||||
return array( | return array( | ||||
PhabricatorPolicyCapability::CAN_VIEW, | PhabricatorPolicyCapability::CAN_VIEW, | ||||
); | ); | ||||
Show All 15 Lines |