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 PhabricatorConstantChartFunction extends PhabricatorPureChartFunction..
Decoded Output download
<?php
final class PhabricatorConstantChartFunction
extends PhabricatorPureChartFunction {
const FUNCTIONKEY = 'constant';
protected function newArguments() {
return array(
$this->newArgument()
->setName('n')
->setType('number'),
);
}
public function evaluateFunction(array $xv) {
$n = $this->getArgument('n');
$yv = array();
foreach ($xv as $x) {
$yv[] = $n;
}
return $yv;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorConstantChartFunction
extends PhabricatorPureChartFunction {
const FUNCTIONKEY = 'constant';
protected function newArguments() {
return array(
$this->newArgument()
->setName('n')
->setType('number'),
);
}
public function evaluateFunction(array $xv) {
$n = $this->getArgument('n');
$yv = array();
foreach ($xv as $x) {
$yv[] = $n;
}
return $yv;
}
}
Function Calls
None |
Stats
MD5 | 4db902100c6f27038d8555d70573caf4 |
Eval Count | 0 |
Decode Time | 83 ms |