Differential D17279 Diff 41571 src/applications/diffusion/query/DiffusionCommitRequiredActionResultBucket.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/query/DiffusionCommitRequiredActionResultBucket.php
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | private function filterShouldAudit(array $phids) { | ||||
$should_audit = array( | $should_audit = array( | ||||
PhabricatorAuditStatusConstants::AUDIT_REQUIRED, | PhabricatorAuditStatusConstants::AUDIT_REQUIRED, | ||||
PhabricatorAuditStatusConstants::AUDIT_REQUESTED, | PhabricatorAuditStatusConstants::AUDIT_REQUESTED, | ||||
); | ); | ||||
$should_audit = array_fuse($should_audit); | $should_audit = array_fuse($should_audit); | ||||
foreach ($objects as $key => $object) { | foreach ($objects as $key => $object) { | ||||
if (isset($phids[$object->getAuthorPHID()])) { | |||||
continue; | |||||
} | |||||
if (!$this->hasAuditorsWithStatus($object, $phids, $should_audit)) { | if (!$this->hasAuditorsWithStatus($object, $phids, $should_audit)) { | ||||
continue; | continue; | ||||
} | } | ||||
$results[$key] = $object; | $results[$key] = $object; | ||||
unset($this->objects[$key]); | unset($this->objects[$key]); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |