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 PhabricatorHTTPParameterTypeTableView extends AphrontView { privat..
Decoded Output download
<?php
final class PhabricatorHTTPParameterTypeTableView
extends AphrontView {
private $types;
public function setHTTPParameterTypes(array $types) {
assert_instances_of($types, 'AphrontHTTPParameterType');
$this->types = $types;
return $this;
}
public function getHTTPParameterTypes() {
return $this->types;
}
public function render() {
$types = $this->getHTTPParameterTypes();
$types = mpull($types, null, 'getTypeName');
$br = phutil_tag('br');
$rows = array();
foreach ($types as $name => $type) {
$formats = $type->getFormatDescriptions();
$formats = phutil_implode_html($br, $formats);
$examples = $type->getExamples();
$examples = phutil_implode_html($br, $examples);
$rows[] = array(
$name,
$formats,
$examples,
);
}
$table = id(new AphrontTableView($rows))
->setHeaders(
array(
pht('Type'),
pht('Formats'),
pht('Examples'),
))
->setColumnClasses(
array(
'pri top',
'top',
'wide top prewrap',
));
return $table;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorHTTPParameterTypeTableView
extends AphrontView {
private $types;
public function setHTTPParameterTypes(array $types) {
assert_instances_of($types, 'AphrontHTTPParameterType');
$this->types = $types;
return $this;
}
public function getHTTPParameterTypes() {
return $this->types;
}
public function render() {
$types = $this->getHTTPParameterTypes();
$types = mpull($types, null, 'getTypeName');
$br = phutil_tag('br');
$rows = array();
foreach ($types as $name => $type) {
$formats = $type->getFormatDescriptions();
$formats = phutil_implode_html($br, $formats);
$examples = $type->getExamples();
$examples = phutil_implode_html($br, $examples);
$rows[] = array(
$name,
$formats,
$examples,
);
}
$table = id(new AphrontTableView($rows))
->setHeaders(
array(
pht('Type'),
pht('Formats'),
pht('Examples'),
))
->setColumnClasses(
array(
'pri top',
'top',
'wide top prewrap',
));
return $table;
}
}
Function Calls
None |
Stats
MD5 | 1d360c7420baf404dd379b68317d9b3b |
Eval Count | 0 |
Decode Time | 90 ms |