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 PhabricatorPackagesVersionListView extends PhabricatorPackagesView { ..
Decoded Output download
<?php
final class PhabricatorPackagesVersionListView
extends PhabricatorPackagesView {
private $versions;
public function setVersions(array $versions) {
assert_instances_of($versions, 'PhabricatorPackagesVersion');
$this->versions = $versions;
return $this;
}
public function getVersions() {
return $this->versions;
}
public function render() {
return $this->newListView();
}
public function newListView() {
$viewer = $this->getViewer();
$versions = $this->getVersions();
$list = id(new PHUIObjectItemListView())
->setViewer($viewer);
foreach ($versions as $version) {
$item = id(new PHUIObjectItemView())
->setHeader($version->getName())
->setHref($version->getURI());
$list->addItem($item);
}
return $list;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorPackagesVersionListView
extends PhabricatorPackagesView {
private $versions;
public function setVersions(array $versions) {
assert_instances_of($versions, 'PhabricatorPackagesVersion');
$this->versions = $versions;
return $this;
}
public function getVersions() {
return $this->versions;
}
public function render() {
return $this->newListView();
}
public function newListView() {
$viewer = $this->getViewer();
$versions = $this->getVersions();
$list = id(new PHUIObjectItemListView())
->setViewer($viewer);
foreach ($versions as $version) {
$item = id(new PHUIObjectItemView())
->setHeader($version->getName())
->setHref($version->getURI());
$list->addItem($item);
}
return $list;
}
}
Function Calls
None |
Stats
MD5 | 15a7b3f7e533da99dbc19e73ded2bc1e |
Eval Count | 0 |
Decode Time | 80 ms |