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

Decoded Output download

<?php

final class PhabricatorAuthPasswordPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'APAS';

  public function getTypeName() {
    return pht('Auth Password');
  }

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

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

  protected function buildQueryForObjects(
    PhabricatorObjectQuery $query,
    array $phids) {
    return id(new PhabricatorAuthPasswordQuery())
      ->withPHIDs($phids);
  }

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

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

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorAuthPasswordPHIDType extends PhabricatorPHIDType {

  const TYPECONST = 'APAS';

  public function getTypeName() {
    return pht('Auth Password');
  }

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

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

  protected function buildQueryForObjects(
    PhabricatorObjectQuery $query,
    array $phids) {
    return id(new PhabricatorAuthPasswordQuery())
      ->withPHIDs($phids);
  }

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

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

}

Function Calls

None

Variables

None

Stats

MD5 ac28514da06d89ba95c403c63a167b61
Eval Count 0
Decode Time 74 ms