Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php final class DiffusionPreCommitContentRevisionAcceptingReviewersHeraldField extend..
Decoded Output download
<?php
final class DiffusionPreCommitContentRevisionAcceptingReviewersHeraldField
extends DiffusionPreCommitContentHeraldField {
const FIELDCONST = 'diffusion.pre.content.revision.accepting';
public function getHeraldFieldName() {
return pht('Accepting reviewers');
}
public function getFieldGroupKey() {
return HeraldRelatedFieldGroup::FIELDGROUPKEY;
}
public function getHeraldFieldValue($object) {
$revision = $this->getAdapter()->getRevision();
if (!$revision) {
return array();
}
$diff_phid = $revision->getActiveDiffPHID();
$reviewer_phids = array();
foreach ($revision->getReviewers() as $reviewer) {
if ($reviewer->isAccepted($diff_phid)) {
$reviewer_phids[] = $reviewer->getReviewerPHID();
}
}
return $reviewer_phids;
}
protected function getHeraldFieldStandardType() {
return self::STANDARD_PHID_LIST;
}
protected function getDatasource() {
return new DifferentialReviewerDatasource();
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class DiffusionPreCommitContentRevisionAcceptingReviewersHeraldField
extends DiffusionPreCommitContentHeraldField {
const FIELDCONST = 'diffusion.pre.content.revision.accepting';
public function getHeraldFieldName() {
return pht('Accepting reviewers');
}
public function getFieldGroupKey() {
return HeraldRelatedFieldGroup::FIELDGROUPKEY;
}
public function getHeraldFieldValue($object) {
$revision = $this->getAdapter()->getRevision();
if (!$revision) {
return array();
}
$diff_phid = $revision->getActiveDiffPHID();
$reviewer_phids = array();
foreach ($revision->getReviewers() as $reviewer) {
if ($reviewer->isAccepted($diff_phid)) {
$reviewer_phids[] = $reviewer->getReviewerPHID();
}
}
return $reviewer_phids;
}
protected function getHeraldFieldStandardType() {
return self::STANDARD_PHID_LIST;
}
protected function getDatasource() {
return new DifferentialReviewerDatasource();
}
}
Function Calls
None |
Stats
MD5 | ed69679acd81ce2e49705ea1eefe5a1b |
Eval Count | 0 |
Decode Time | 91 ms |