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 PhabricatorProjectsWatchersSearchEngineAttachment extends Phabricator..
Decoded Output download
<?php
final class PhabricatorProjectsWatchersSearchEngineAttachment
extends PhabricatorSearchEngineAttachment {
public function getAttachmentName() {
return pht('Project Watchers');
}
public function getAttachmentDescription() {
return pht('Get the watcher list for the project.');
}
public function willLoadAttachmentData($query, $spec) {
$query->needWatchers(true);
}
public function getAttachmentForObject($object, $data, $spec) {
$watchers = array();
foreach ($object->getWatcherPHIDs() as $watcher_phid) {
$watchers[] = array(
'phid' => $watcher_phid,
);
}
return array(
'watchers' => $watchers,
);
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorProjectsWatchersSearchEngineAttachment
extends PhabricatorSearchEngineAttachment {
public function getAttachmentName() {
return pht('Project Watchers');
}
public function getAttachmentDescription() {
return pht('Get the watcher list for the project.');
}
public function willLoadAttachmentData($query, $spec) {
$query->needWatchers(true);
}
public function getAttachmentForObject($object, $data, $spec) {
$watchers = array();
foreach ($object->getWatcherPHIDs() as $watcher_phid) {
$watchers[] = array(
'phid' => $watcher_phid,
);
}
return array(
'watchers' => $watchers,
);
}
}
Function Calls
None |
Stats
MD5 | 109a16bb305f0ccd8e4c8e242c9bb716 |
Eval Count | 0 |
Decode Time | 97 ms |