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 DiffusionRawDiffQueryConduitAPIMethod extends DiffusionQueryConduitAP..

Decoded Output download

<?php

final class DiffusionRawDiffQueryConduitAPIMethod
  extends DiffusionQueryConduitAPIMethod {

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

  public function getMethodDescription() {
    return pht(
      'Get raw diff information from a repository for a specific commit at an '.
      '(optional) path.');
  }

  protected function defineReturnType() {
    return 'string';
  }

  protected function defineCustomParamTypes() {
    return array(
      'commit' => 'required string',
      'path' => 'optional string',
      'linesOfContext' => 'optional int',
      'againstCommit' => 'optional string',
    ) + DiffusionFileFutureQuery::getConduitParameters();
  }

  protected function getResult(ConduitAPIRequest $request) {
    $drequest = $this->getDiffusionRequest();

    $query = DiffusionRawDiffQuery::newFromDiffusionRequest($drequest);

    $lines_of_context = $request->getValue('linesOfContext');
    if ($lines_of_context !== null) {
      $query->setLinesOfContext($lines_of_context);
    }

    $against_commit = $request->getValue('againstCommit');
    if ($against_commit !== null) {
      $query->setAgainstCommit($against_commit);
    }

    return $query->respondToConduitRequest($request);
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class DiffusionRawDiffQueryConduitAPIMethod
  extends DiffusionQueryConduitAPIMethod {

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

  public function getMethodDescription() {
    return pht(
      'Get raw diff information from a repository for a specific commit at an '.
      '(optional) path.');
  }

  protected function defineReturnType() {
    return 'string';
  }

  protected function defineCustomParamTypes() {
    return array(
      'commit' => 'required string',
      'path' => 'optional string',
      'linesOfContext' => 'optional int',
      'againstCommit' => 'optional string',
    ) + DiffusionFileFutureQuery::getConduitParameters();
  }

  protected function getResult(ConduitAPIRequest $request) {
    $drequest = $this->getDiffusionRequest();

    $query = DiffusionRawDiffQuery::newFromDiffusionRequest($drequest);

    $lines_of_context = $request->getValue('linesOfContext');
    if ($lines_of_context !== null) {
      $query->setLinesOfContext($lines_of_context);
    }

    $against_commit = $request->getValue('againstCommit');
    if ($against_commit !== null) {
      $query->setAgainstCommit($against_commit);
    }

    return $query->respondToConduitRequest($request);
  }

}

Function Calls

None

Variables

None

Stats

MD5 7a514c3e7419c4726494fb68bfcaaff1
Eval Count 0
Decode Time 87 ms