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 FeedPublisherWorker extends FeedPushWorker { protected function doWo..
Decoded Output download
<?php
final class FeedPublisherWorker extends FeedPushWorker {
protected function doWork() {
$story = $this->loadFeedStory();
$uris = PhabricatorEnv::getEnvConfig('feed.http-hooks');
if ($uris) {
foreach ($uris as $uri) {
$this->queueTask(
'FeedPublisherHTTPWorker',
array(
'key' => $story->getChronologicalKey(),
'uri' => $uri,
));
}
}
$argv = array(
array(),
);
// Find and schedule all the enabled Doorkeeper publishers.
// TODO: Use PhutilClassMapQuery?
$doorkeeper_workers = id(new PhutilSymbolLoader())
->setAncestorClass('DoorkeeperFeedWorker')
->loadObjects($argv);
foreach ($doorkeeper_workers as $worker) {
if (!$worker->isEnabled()) {
continue;
}
$this->queueTask(
get_class($worker),
array(
'key' => $story->getChronologicalKey(),
));
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class FeedPublisherWorker extends FeedPushWorker {
protected function doWork() {
$story = $this->loadFeedStory();
$uris = PhabricatorEnv::getEnvConfig('feed.http-hooks');
if ($uris) {
foreach ($uris as $uri) {
$this->queueTask(
'FeedPublisherHTTPWorker',
array(
'key' => $story->getChronologicalKey(),
'uri' => $uri,
));
}
}
$argv = array(
array(),
);
// Find and schedule all the enabled Doorkeeper publishers.
// TODO: Use PhutilClassMapQuery?
$doorkeeper_workers = id(new PhutilSymbolLoader())
->setAncestorClass('DoorkeeperFeedWorker')
->loadObjects($argv);
foreach ($doorkeeper_workers as $worker) {
if (!$worker->isEnabled()) {
continue;
}
$this->queueTask(
get_class($worker),
array(
'key' => $story->getChronologicalKey(),
));
}
}
}
Function Calls
None |
Stats
MD5 | d40109321faa2af7596cb4afe1b8c28f |
Eval Count | 0 |
Decode Time | 78 ms |