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 /** * Configurable test query for implementing Policy unit tests. */ final class ..
Decoded Output download
<?php
/**
* Configurable test query for implementing Policy unit tests.
*/
final class PhabricatorPolicyAwareTestQuery
extends PhabricatorPolicyAwareQuery {
private $results;
private $offset = 0;
public function setResults(array $results) {
$this->results = $results;
return $this;
}
protected function willExecute() {
$this->offset = 0;
}
protected function loadPage() {
if ($this->getRawResultLimit()) {
return array_slice(
$this->results,
$this->offset,
$this->getRawResultLimit());
} else {
return array_slice($this->results, $this->offset);
}
}
protected function nextPage(array $page) {
$this->offset += count($page);
}
public function getQueryApplicationClass() {
return null;
}
}
?>
Did this file decode correctly?
Original Code
<?php
/**
* Configurable test query for implementing Policy unit tests.
*/
final class PhabricatorPolicyAwareTestQuery
extends PhabricatorPolicyAwareQuery {
private $results;
private $offset = 0;
public function setResults(array $results) {
$this->results = $results;
return $this;
}
protected function willExecute() {
$this->offset = 0;
}
protected function loadPage() {
if ($this->getRawResultLimit()) {
return array_slice(
$this->results,
$this->offset,
$this->getRawResultLimit());
} else {
return array_slice($this->results, $this->offset);
}
}
protected function nextPage(array $page) {
$this->offset += count($page);
}
public function getQueryApplicationClass() {
return null;
}
}
Function Calls
None |
Stats
MD5 | a1c6a339bf76728b8de2d1212d8123d8 |
Eval Count | 0 |
Decode Time | 108 ms |