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 PhabricatorScaleChartFunction extends PhabricatorPureChartFunction { ..

Decoded Output download

<?php

final class PhabricatorScaleChartFunction
  extends PhabricatorPureChartFunction {

  const FUNCTIONKEY = 'scale';

  protected function newArguments() {
    return array(
      $this->newArgument()
        ->setName('scale')
        ->setType('number'),
    );
  }

  public function evaluateFunction(array $xv) {
    $scale = $this->getArgument('scale');

    $yv = array();

    foreach ($xv as $x) {
      $yv[] = $x * $scale;
    }

    return $yv;
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class PhabricatorScaleChartFunction
  extends PhabricatorPureChartFunction {

  const FUNCTIONKEY = 'scale';

  protected function newArguments() {
    return array(
      $this->newArgument()
        ->setName('scale')
        ->setType('number'),
    );
  }

  public function evaluateFunction(array $xv) {
    $scale = $this->getArgument('scale');

    $yv = array();

    foreach ($xv as $x) {
      $yv[] = $x * $scale;
    }

    return $yv;
  }

}

Function Calls

None

Variables

None

Stats

MD5 f02f5791578e29ab655d04140b7e5cbd
Eval Count 0
Decode Time 75 ms