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

Decoded Output download

<?php

final class PhabricatorOAuthServerClientPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'OASC';

  public function getTypeName() {
    return pht('OAuth Application');
  }

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

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

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

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

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

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

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

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorOAuthServerClientPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'OASC';

  public function getTypeName() {
    return pht('OAuth Application');
  }

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

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

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

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

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

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

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

}

Function Calls

None

Variables

None

Stats

MD5 e6850ec719efe762ad32d9ce55a28cf3
Eval Count 0
Decode Time 89 ms