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 abstract class NuanceWorker extends PhabricatorWorker { protected function getVi..

Decoded Output download

<?php

abstract class NuanceWorker extends PhabricatorWorker {

  protected function getViewer() {
    return PhabricatorUser::getOmnipotentUser();
  }

  protected function loadItem($item_phid) {
    $item = id(new NuanceItemQuery())
      ->setViewer($this->getViewer())
      ->withPHIDs(array($item_phid))
      ->executeOne();

    if (!$item) {
      throw new PhabricatorWorkerPermanentFailureException(
        pht(
          'There is no Nuance item with PHID "%s".',
          $item_phid));
    }

    return $item;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

abstract class NuanceWorker extends PhabricatorWorker {

  protected function getViewer() {
    return PhabricatorUser::getOmnipotentUser();
  }

  protected function loadItem($item_phid) {
    $item = id(new NuanceItemQuery())
      ->setViewer($this->getViewer())
      ->withPHIDs(array($item_phid))
      ->executeOne();

    if (!$item) {
      throw new PhabricatorWorkerPermanentFailureException(
        pht(
          'There is no Nuance item with PHID "%s".',
          $item_phid));
    }

    return $item;
  }

}

Function Calls

None

Variables

None

Stats

MD5 36a19bb70f911b6905b225fd32b5a615
Eval Count 0
Decode Time 94 ms