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 HeraldWebhookRequestPHIDType extends PhabricatorPHIDType { const TYP..
Decoded Output download
<?php
final class HeraldWebhookRequestPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'HWBR';
public function getTypeName() {
return pht('Webhook Request');
}
public function newObject() {
return new HeraldWebhook();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorHeraldApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new HeraldWebhookRequestQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$request = $objects[$phid];
$handle->setName(pht('Webhook Request %d', $request->getID()));
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class HeraldWebhookRequestPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'HWBR';
public function getTypeName() {
return pht('Webhook Request');
}
public function newObject() {
return new HeraldWebhook();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorHeraldApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new HeraldWebhookRequestQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$request = $objects[$phid];
$handle->setName(pht('Webhook Request %d', $request->getID()));
}
}
}
Function Calls
None |
Stats
MD5 | 5d703233e42fe3f2f83c4e87e71fcc18 |
Eval Count | 0 |
Decode Time | 106 ms |