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

Decoded Output download

<?php

final class PhabricatorAuthContactNumberPHIDType
  extends PhabricatorPHIDType {

  const TYPECONST = 'CTNM';

  public function getTypeName() {
    return pht('Contact Number');
  }

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

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

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

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

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

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

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorAuthContactNumberPHIDType
  extends PhabricatorPHIDType {

  const TYPECONST = 'CTNM';

  public function getTypeName() {
    return pht('Contact Number');
  }

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

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

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

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

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

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

}

Function Calls

None

Variables

None

Stats

MD5 f16cd45f7bb60682998344f2387958de
Eval Count 0
Decode Time 85 ms