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 PhabricatorRepositoryPullEventPHIDType extends PhabricatorPHIDType { ..

Decoded Output download

<?php

final class PhabricatorRepositoryPullEventPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'PULE';

  public function getTypeName() {
    return pht('Pull Event');
  }

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

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

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

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

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

    foreach ($handles as $phid => $handle) {
      $event = $objects[$phid];

      $handle->setName(pht('Pull Event %d', $event->getID()));
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorRepositoryPullEventPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'PULE';

  public function getTypeName() {
    return pht('Pull Event');
  }

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

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

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

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

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

    foreach ($handles as $phid => $handle) {
      $event = $objects[$phid];

      $handle->setName(pht('Pull Event %d', $event->getID()));
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 0dc142025cc847322a7ba794d07f9dba
Eval Count 0
Decode Time 137 ms