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 PhabricatorAuthAuthProviderPHIDType extends PhabricatorPHIDType { co..
Decoded Output download
<?php
final class PhabricatorAuthAuthProviderPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'AUTH';
public function getTypeName() {
return pht('Auth Provider');
}
public function newObject() {
return new PhabricatorAuthProviderConfig();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorAuthApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhabricatorAuthProviderConfigQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$provider = $objects[$phid]->getProvider();
if ($provider) {
$handle->setName($provider->getProviderName());
}
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorAuthAuthProviderPHIDType extends PhabricatorPHIDType {
const TYPECONST = 'AUTH';
public function getTypeName() {
return pht('Auth Provider');
}
public function newObject() {
return new PhabricatorAuthProviderConfig();
}
public function getPHIDTypeApplicationClass() {
return 'PhabricatorAuthApplication';
}
protected function buildQueryForObjects(
PhabricatorObjectQuery $query,
array $phids) {
return id(new PhabricatorAuthProviderConfigQuery())
->withPHIDs($phids);
}
public function loadHandles(
PhabricatorHandleQuery $query,
array $handles,
array $objects) {
foreach ($handles as $phid => $handle) {
$provider = $objects[$phid]->getProvider();
if ($provider) {
$handle->setName($provider->getProviderName());
}
}
}
}
Function Calls
None |
Stats
MD5 | 2545a5fa97b6ed96d0a17924f4c71840 |
Eval Count | 0 |
Decode Time | 88 ms |