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 AlmanacInterfaceEditor extends AlmanacEditor { public function get..

Decoded Output download

<?php

final class AlmanacInterfaceEditor
  extends AlmanacEditor {

  public function getEditorObjectsDescription() {
    return pht('Almanac Interface');
  }

  public function getCreateObjectTitle($author, $object) {
    return pht('%s created this interface.', $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(
      null,
      pht('Invalid'),
      pht(
        'Interfaces must have a unique combination of network, device, '.
        'address, and port.'),
      null);

    throw new PhabricatorApplicationTransactionValidationException($errors);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class AlmanacInterfaceEditor
  extends AlmanacEditor {

  public function getEditorObjectsDescription() {
    return pht('Almanac Interface');
  }

  public function getCreateObjectTitle($author, $object) {
    return pht('%s created this interface.', $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(
      null,
      pht('Invalid'),
      pht(
        'Interfaces must have a unique combination of network, device, '.
        'address, and port.'),
      null);

    throw new PhabricatorApplicationTransactionValidationException($errors);
  }

}

Function Calls

None

Variables

None

Stats

MD5 8c88fdaa2eeff6a9b6f03cffffd8489a
Eval Count 0
Decode Time 87 ms