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 ManiphestTaskPHIDResolver extends PhabricatorPHIDResolver { protec..
Decoded Output download
<?php
final class ManiphestTaskPHIDResolver
extends PhabricatorPHIDResolver {
protected function getResolutionMap(array $names) {
foreach ($names as $key => $name) {
if (ctype_digit($name)) {
$names[$key] = 'T'.$name;
}
}
$query = id(new PhabricatorObjectQuery())
->setViewer($this->getViewer());
$tasks = id(new ManiphestTaskPHIDType())
->loadNamedObjects($query, $names);
$results = array();
foreach ($tasks as $task) {
$task_phid = $task->getPHID();
$results[$task->getID()] = $task_phid;
$results[$task->getMonogram()] = $task_phid;
}
return $results;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class ManiphestTaskPHIDResolver
extends PhabricatorPHIDResolver {
protected function getResolutionMap(array $names) {
foreach ($names as $key => $name) {
if (ctype_digit($name)) {
$names[$key] = 'T'.$name;
}
}
$query = id(new PhabricatorObjectQuery())
->setViewer($this->getViewer());
$tasks = id(new ManiphestTaskPHIDType())
->loadNamedObjects($query, $names);
$results = array();
foreach ($tasks as $task) {
$task_phid = $task->getPHID();
$results[$task->getID()] = $task_phid;
$results[$task->getMonogram()] = $task_phid;
}
return $results;
}
}
Function Calls
None |
Stats
MD5 | b7f923db7280077b7ffa6e6d4355e86a |
Eval Count | 0 |
Decode Time | 99 ms |