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 HarbormasterBuildLogPHIDType extends PhabricatorPHIDType { const TYP..

Decoded Output download

<?php

final class HarbormasterBuildLogPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'HMCL';

  public function getTypeName() {
    return pht('Build Log');
  }

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

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

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

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

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

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

      $handle
        ->setName(pht('Build Log %d', $build_log->getID()))
        ->setURI($build_log->getURI());
    }
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class HarbormasterBuildLogPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'HMCL';

  public function getTypeName() {
    return pht('Build Log');
  }

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

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

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

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

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

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

      $handle
        ->setName(pht('Build Log %d', $build_log->getID()))
        ->setURI($build_log->getURI());
    }
  }

}

Function Calls

None

Variables

None

Stats

MD5 83eb8bc8e14a8283d261a0b89532cd6b
Eval Count 0
Decode Time 107 ms