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 PhortuneAccountPHIDType extends PhabricatorPHIDType { const TYPECONS..

Decoded Output download

<?php

final class PhortuneAccountPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'ACNT';

  public function getTypeName() {
    return pht('Phortune Account');
  }

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

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

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

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

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

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

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

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhortuneAccountPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'ACNT';

  public function getTypeName() {
    return pht('Phortune Account');
  }

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

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

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

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

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

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

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

}

Function Calls

None

Variables

None

Stats

MD5 65f0073d2766176ee0ffdc42ce314661
Eval Count 0
Decode Time 92 ms