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 DifferentialReviewersAddBlockingSelfHeraldAction extends Differential..

Decoded Output download

<?php

final class DifferentialReviewersAddBlockingSelfHeraldAction
  extends DifferentialReviewersHeraldAction {

  const ACTIONCONST = 'differential.reviewers.self.blocking';

  public function getHeraldActionName() {
    return pht('Add me as a blocking reviewer');
  }

  public function supportsRuleType($rule_type) {
    return ($rule_type == HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);
  }

  public function applyEffect($object, HeraldEffect $effect) {
    $phid = $effect->getRule()->getAuthorPHID();
    return $this->applyReviewers(array($phid), $is_blocking = true);
  }

  public function getHeraldActionStandardType() {
    return self::STANDARD_NONE;
  }

  public function renderActionDescription($value) {
    return pht('Add rule author as blocking reviewer.');
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class DifferentialReviewersAddBlockingSelfHeraldAction
  extends DifferentialReviewersHeraldAction {

  const ACTIONCONST = 'differential.reviewers.self.blocking';

  public function getHeraldActionName() {
    return pht('Add me as a blocking reviewer');
  }

  public function supportsRuleType($rule_type) {
    return ($rule_type == HeraldRuleTypeConfig::RULE_TYPE_PERSONAL);
  }

  public function applyEffect($object, HeraldEffect $effect) {
    $phid = $effect->getRule()->getAuthorPHID();
    return $this->applyReviewers(array($phid), $is_blocking = true);
  }

  public function getHeraldActionStandardType() {
    return self::STANDARD_NONE;
  }

  public function renderActionDescription($value) {
    return pht('Add rule author as blocking reviewer.');
  }

}

Function Calls

None

Variables

None

Stats

MD5 c045e148574df871f8c44b975378149f
Eval Count 0
Decode Time 280 ms