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 NuanceItemPHIDType extends PhabricatorPHIDType { const TYPECONST = '..

Decoded Output download

<?php

final class NuanceItemPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'NUAI';

  public function getTypeName() {
    return pht('Item');
  }

  public function newObject() {
    return new NuanceItem();
  }

  public function getPHIDTypeApplicationClass() {
    return 'PhabricatorNuanceApplication';
  }

  protected function buildQueryForObjects(
    PhabricatorObjectQuery $query,
    array $phids) {

    return id(new NuanceItemQuery())
      ->withPHIDs($phids);
  }

  public function loadHandles(
    PhabricatorHandleQuery $query,
    array $handles,
    array $objects) {

    $viewer = $query->getViewer();
    foreach ($handles as $phid => $handle) {
      $item = $objects[$phid];

      $handle->setName($item->getDisplayName());
      $handle->setURI($item->getURI());
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class NuanceItemPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'NUAI';

  public function getTypeName() {
    return pht('Item');
  }

  public function newObject() {
    return new NuanceItem();
  }

  public function getPHIDTypeApplicationClass() {
    return 'PhabricatorNuanceApplication';
  }

  protected function buildQueryForObjects(
    PhabricatorObjectQuery $query,
    array $phids) {

    return id(new NuanceItemQuery())
      ->withPHIDs($phids);
  }

  public function loadHandles(
    PhabricatorHandleQuery $query,
    array $handles,
    array $objects) {

    $viewer = $query->getViewer();
    foreach ($handles as $phid => $handle) {
      $item = $objects[$phid];

      $handle->setName($item->getDisplayName());
      $handle->setURI($item->getURI());
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 9f3307edb2ab1bf5caf20fd33d062933
Eval Count 0
Decode Time 95 ms