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 PhabricatorCommitRepositoryField extends PhabricatorCommitCustomField..

Decoded Output download

<?php

final class PhabricatorCommitRepositoryField
  extends PhabricatorCommitCustomField {

  public function getFieldKey() {
    return 'diffusion:repository';
  }

  public function getFieldName() {
    return pht('Repository');
  }

  public function getFieldDescription() {
    return pht('Shows repository in email.');
  }

  public function shouldDisableByDefault() {
    return true;
  }

  public function shouldAppearInTransactionMail() {
    return true;
  }

  public function updateTransactionMailBody(
    PhabricatorMetaMTAMailBody $body,
    PhabricatorApplicationTransactionEditor $editor,
    array $xactions) {

    $repository = $this->getObject()->getRepository();

    $body->addTextSection(
      pht('REPOSITORY'),
      $repository->getMonogram().' '.$repository->getName());
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorCommitRepositoryField
  extends PhabricatorCommitCustomField {

  public function getFieldKey() {
    return 'diffusion:repository';
  }

  public function getFieldName() {
    return pht('Repository');
  }

  public function getFieldDescription() {
    return pht('Shows repository in email.');
  }

  public function shouldDisableByDefault() {
    return true;
  }

  public function shouldAppearInTransactionMail() {
    return true;
  }

  public function updateTransactionMailBody(
    PhabricatorMetaMTAMailBody $body,
    PhabricatorApplicationTransactionEditor $editor,
    array $xactions) {

    $repository = $this->getObject()->getRepository();

    $body->addTextSection(
      pht('REPOSITORY'),
      $repository->getMonogram().' '.$repository->getName());
  }

}

Function Calls

None

Variables

None

Stats

MD5 ff9d2da9d4ec2951770610c389739cc4
Eval Count 0
Decode Time 93 ms