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 PhabricatorConfigPHIDModule extends PhabricatorConfigModule { public..
Decoded Output download
<?php
final class PhabricatorConfigPHIDModule extends PhabricatorConfigModule {
public function getModuleKey() {
return 'phid';
}
public function getModuleName() {
return pht('PHID Types');
}
public function renderModuleStatus(AphrontRequest $request) {
$viewer = $request->getViewer();
$types = PhabricatorPHIDType::getAllTypes();
$types = msort($types, 'getTypeConstant');
$rows = array();
foreach ($types as $key => $type) {
$class_name = $type->getPHIDTypeApplicationClass();
if ($class_name !== null) {
$app = PhabricatorApplication::getByClass($class_name);
$app_name = $app->getName();
$icon = $app->getIcon();
if ($icon) {
$app_icon = id(new PHUIIconView())->setIcon($icon);
} else {
$app_icon = null;
}
} else {
$app_name = null;
$app_icon = null;
}
$icon = $type->getTypeIcon();
if ($icon) {
$type_icon = id(new PHUIIconView())->setIcon($icon);
} else {
$type_icon = null;
}
$rows[] = array(
$type->getTypeConstant(),
get_class($type),
$app_icon,
$app_name,
$type_icon,
$type->getTypeName(),
);
}
return id(new AphrontTableView($rows))
->setHeaders(
array(
pht('Constant'),
pht('Class'),
null,
pht('Application'),
null,
pht('Name'),
))
->setColumnClasses(
array(
null,
'pri',
'icon',
null,
'icon',
'wide',
));
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorConfigPHIDModule extends PhabricatorConfigModule {
public function getModuleKey() {
return 'phid';
}
public function getModuleName() {
return pht('PHID Types');
}
public function renderModuleStatus(AphrontRequest $request) {
$viewer = $request->getViewer();
$types = PhabricatorPHIDType::getAllTypes();
$types = msort($types, 'getTypeConstant');
$rows = array();
foreach ($types as $key => $type) {
$class_name = $type->getPHIDTypeApplicationClass();
if ($class_name !== null) {
$app = PhabricatorApplication::getByClass($class_name);
$app_name = $app->getName();
$icon = $app->getIcon();
if ($icon) {
$app_icon = id(new PHUIIconView())->setIcon($icon);
} else {
$app_icon = null;
}
} else {
$app_name = null;
$app_icon = null;
}
$icon = $type->getTypeIcon();
if ($icon) {
$type_icon = id(new PHUIIconView())->setIcon($icon);
} else {
$type_icon = null;
}
$rows[] = array(
$type->getTypeConstant(),
get_class($type),
$app_icon,
$app_name,
$type_icon,
$type->getTypeName(),
);
}
return id(new AphrontTableView($rows))
->setHeaders(
array(
pht('Constant'),
pht('Class'),
null,
pht('Application'),
null,
pht('Name'),
))
->setColumnClasses(
array(
null,
'pri',
'icon',
null,
'icon',
'wide',
));
}
}
Function Calls
None |
Stats
MD5 | 1e6e36bd8ce8dc5182095d275acf186e |
Eval Count | 0 |
Decode Time | 125 ms |