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 PhabricatorMailOutboundRoutingSelfEmailHeraldAction extends Phabricat..

Decoded Output download

<?php

final class PhabricatorMailOutboundRoutingSelfEmailHeraldAction
  extends PhabricatorMailOutboundRoutingHeraldAction {

  const ACTIONCONST = 'routing.self.email';

  public function getHeraldActionName() {
    return pht('Deliver as email');
  }

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

  public function applyEffect($object, HeraldEffect $effect) {
    $rule = $effect->getRule();
    $author_phid = $rule->getAuthorPHID();

    $this->applyRouting(
      $rule,
      PhabricatorMailRoutingRule::ROUTE_AS_MAIL,
      array($author_phid));
  }

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

  public function renderActionDescription($value) {
    return pht('Deliver as email.');
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorMailOutboundRoutingSelfEmailHeraldAction
  extends PhabricatorMailOutboundRoutingHeraldAction {

  const ACTIONCONST = 'routing.self.email';

  public function getHeraldActionName() {
    return pht('Deliver as email');
  }

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

  public function applyEffect($object, HeraldEffect $effect) {
    $rule = $effect->getRule();
    $author_phid = $rule->getAuthorPHID();

    $this->applyRouting(
      $rule,
      PhabricatorMailRoutingRule::ROUTE_AS_MAIL,
      array($author_phid));
  }

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

  public function renderActionDescription($value) {
    return pht('Deliver as email.');
  }

}

Function Calls

None

Variables

None

Stats

MD5 9a19a66ed8b168db57c56cbb6a9ae582
Eval Count 0
Decode Time 96 ms