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 AphrontStringListHTTPParameterType extends AphrontListHTTPParameterTy..

Decoded Output download

<?php

final class AphrontStringListHTTPParameterType
  extends AphrontListHTTPParameterType {

  protected function getParameterValue(AphrontRequest $request, $key) {
    $list = $request->getArr($key, null);

    if ($list === null) {
      $list = $request->getStrList($key);
    }

    return $list;
  }

  protected function getParameterDefault() {
    return array();
  }

  protected function getParameterTypeName() {
    return 'list<string>';
  }

  protected function getParameterFormatDescriptions() {
    return array(
      pht('Comma-separated list of strings.'),
      pht('List of strings, as array.'),
    );
  }

  protected function getParameterExamples() {
    return array(
      'v=cat,dog,pig',
      'v[]=cat&v[]=dog',
    );
  }

}
 ?>

Did this file decode correctly?

Original Code

<?php

final class AphrontStringListHTTPParameterType
  extends AphrontListHTTPParameterType {

  protected function getParameterValue(AphrontRequest $request, $key) {
    $list = $request->getArr($key, null);

    if ($list === null) {
      $list = $request->getStrList($key);
    }

    return $list;
  }

  protected function getParameterDefault() {
    return array();
  }

  protected function getParameterTypeName() {
    return 'list<string>';
  }

  protected function getParameterFormatDescriptions() {
    return array(
      pht('Comma-separated list of strings.'),
      pht('List of strings, as array.'),
    );
  }

  protected function getParameterExamples() {
    return array(
      'v=cat,dog,pig',
      'v[]=cat&v[]=dog',
    );
  }

}

Function Calls

None

Variables

None

Stats

MD5 fd5e5e2ebedef7bbaf0850b4854d53f1
Eval Count 0
Decode Time 79 ms