Differential D21599 Diff 51420 src/applications/audit/management/PhabricatorAuditManagementDeleteWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/audit/management/PhabricatorAuditManagementDeleteWorkflow.php
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | foreach ($commit_iterator as $commit) { | ||||
$handles = id(new PhabricatorHandleQuery()) | $handles = id(new PhabricatorHandleQuery()) | ||||
->setViewer($viewer) | ->setViewer($viewer) | ||||
->withPHIDs(mpull($commit_audits, 'getAuditorPHID')) | ->withPHIDs(mpull($commit_audits, 'getAuditorPHID')) | ||||
->execute(); | ->execute(); | ||||
foreach ($commit_audits as $audit) { | foreach ($commit_audits as $audit) { | ||||
$audit_id = $audit->getID(); | $audit_id = $audit->getID(); | ||||
$status = $audit->getAuditRequestStatusObject(); | |||||
$description = sprintf( | $description = sprintf( | ||||
'%10d %-16s %-16s %s: %s', | '%10d %-16s %-16s %s: %s', | ||||
$audit_id, | $audit_id, | ||||
$handles[$audit->getAuditorPHID()]->getName(), | $handles[$audit->getAuditorPHID()]->getName(), | ||||
PhabricatorAuditStatusConstants::getStatusName( | $status->getStatusName(), | ||||
$audit->getAuditStatus()), | |||||
$commit->getRepository()->formatCommitName( | $commit->getRepository()->formatCommitName( | ||||
$commit->getCommitIdentifier()), | $commit->getCommitIdentifier()), | ||||
trim($commit->getSummary())); | trim($commit->getSummary())); | ||||
$audits[] = array( | $audits[] = array( | ||||
'auditID' => $audit_id, | 'auditID' => $audit_id, | ||||
'commitPHID' => $commit->getPHID(), | 'commitPHID' => $commit->getPHID(), | ||||
'description' => $description, | 'description' => $description, | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |