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 DiffusionMercurialRequest extends DiffusionRequest { protected funct..

Decoded Output download

<?php

final class DiffusionMercurialRequest extends DiffusionRequest {

  protected function isStableCommit($symbol) {
    return $symbol !== null && preg_match('/^[a-f0-9]{40}\z/', $symbol);
  }

  public function getBranch() {
    if ($this->branch) {
      return $this->branch;
    }

    if ($this->repository) {
      return $this->repository->getDefaultBranch();
    }

    throw new Exception(pht('Unable to determine branch!'));
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class DiffusionMercurialRequest extends DiffusionRequest {

  protected function isStableCommit($symbol) {
    return $symbol !== null && preg_match('/^[a-f0-9]{40}\z/', $symbol);
  }

  public function getBranch() {
    if ($this->branch) {
      return $this->branch;
    }

    if ($this->repository) {
      return $this->repository->getDefaultBranch();
    }

    throw new Exception(pht('Unable to determine branch!'));
  }

}

Function Calls

None

Variables

None

Stats

MD5 0379b32a07d3427ce507499f67da88b3
Eval Count 0
Decode Time 81 ms