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 PhabricatorAuthContactNumberEditor extends PhabricatorApplicationTran..

Decoded Output download

<?php

final class PhabricatorAuthContactNumberEditor
  extends PhabricatorApplicationTransactionEditor {

  public function getEditorApplicationClass() {
    return 'PhabricatorAuthApplication';
  }

  public function getEditorObjectsDescription() {
    return pht('Contact Numbers');
  }

  public function getCreateObjectTitle($author, $object) {
    return pht('%s created this contact number.', $author);
  }

  public function getCreateObjectTitleForFeed($author, $object) {
    return pht('%s created %s.', $author, $object);
  }

  protected function didCatchDuplicateKeyException(
    PhabricatorLiskDAO $object,
    array $xactions,
    Exception $ex) {

    $errors = array();
    $errors[] = new PhabricatorApplicationTransactionValidationError(
      PhabricatorAuthContactNumberNumberTransaction::TRANSACTIONTYPE,
      pht('Duplicate'),
      pht('This contact number is already in use.'),
      null);

    throw new PhabricatorApplicationTransactionValidationException($errors);
  }


}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorAuthContactNumberEditor
  extends PhabricatorApplicationTransactionEditor {

  public function getEditorApplicationClass() {
    return 'PhabricatorAuthApplication';
  }

  public function getEditorObjectsDescription() {
    return pht('Contact Numbers');
  }

  public function getCreateObjectTitle($author, $object) {
    return pht('%s created this contact number.', $author);
  }

  public function getCreateObjectTitleForFeed($author, $object) {
    return pht('%s created %s.', $author, $object);
  }

  protected function didCatchDuplicateKeyException(
    PhabricatorLiskDAO $object,
    array $xactions,
    Exception $ex) {

    $errors = array();
    $errors[] = new PhabricatorApplicationTransactionValidationError(
      PhabricatorAuthContactNumberNumberTransaction::TRANSACTIONTYPE,
      pht('Duplicate'),
      pht('This contact number is already in use.'),
      null);

    throw new PhabricatorApplicationTransactionValidationException($errors);
  }


}

Function Calls

None

Variables

None

Stats

MD5 20fa90113fa97d4eedd6980219bea871
Eval Count 0
Decode Time 97 ms