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

Decoded Output download

<?php

final class NuanceQueuePHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'NUAQ';

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

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

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

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

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

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

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

      $handle->setName($queue->getName());
      $handle->setURI($queue->getURI());
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class NuanceQueuePHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'NUAQ';

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

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

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

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

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

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

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

      $handle->setName($queue->getName());
      $handle->setURI($queue->getURI());
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 63805d8cb3abce9848786e6928bb7893
Eval Count 0
Decode Time 105 ms