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 DiffusionCommitParentsQueryConduitAPIMethod extends DiffusionQueryCon..

Decoded Output download

<?php

final class DiffusionCommitParentsQueryConduitAPIMethod
  extends DiffusionQueryConduitAPIMethod {

  public function getAPIMethodName() {
    return 'diffusion.commitparentsquery';
  }

  public function getMethodDescription() {
    return pht(
      "Get the commit identifiers for a commit's parent or parents.");
  }

  protected function defineReturnType() {
    return 'list<string>';
  }

  protected function defineCustomParamTypes() {
    return array(
      'commit' => 'required string',
    );
  }

  protected function getResult(ConduitAPIRequest $request) {
    $repository = $this->getRepository($request);

    return id(new DiffusionLowLevelParentsQuery())
      ->setRepository($repository)
      ->withIdentifier($request->getValue('commit'))
      ->execute();
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class DiffusionCommitParentsQueryConduitAPIMethod
  extends DiffusionQueryConduitAPIMethod {

  public function getAPIMethodName() {
    return 'diffusion.commitparentsquery';
  }

  public function getMethodDescription() {
    return pht(
      "Get the commit identifiers for a commit's parent or parents.");
  }

  protected function defineReturnType() {
    return 'list<string>';
  }

  protected function defineCustomParamTypes() {
    return array(
      'commit' => 'required string',
    );
  }

  protected function getResult(ConduitAPIRequest $request) {
    $repository = $this->getRepository($request);

    return id(new DiffusionLowLevelParentsQuery())
      ->setRepository($repository)
      ->withIdentifier($request->getValue('commit'))
      ->execute();
  }

}

Function Calls

None

Variables

None

Stats

MD5 0c5b6160b1c25ebc4011cfe4e127d350
Eval Count 0
Decode Time 98 ms