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 PhortuneAdHocProduct extends PhortuneProductImplementation { private..
Decoded Output download
<?php
final class PhortuneAdHocProduct extends PhortuneProductImplementation {
private $ref;
public function loadImplementationsForRefs(
PhabricatorUser $viewer,
array $refs) {
$results = array();
foreach ($refs as $key => $ref) {
$product = new PhortuneAdHocProduct();
$product->ref = $ref;
$results[$key] = $product;
}
return $results;
}
public function getRef() {
return $this->ref;
}
public function getName(PhortuneProduct $product) {
return pht('Ad-Hoc Product');
}
public function getPurchaseName(
PhortuneProduct $product,
PhortunePurchase $purchase) {
return coalesce(
$purchase->getMetadataValue('adhoc.name'),
$this->getName($product));
}
public function getPriceAsCurrency(PhortuneProduct $product) {
return PhortuneCurrency::newEmptyCurrency();
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhortuneAdHocProduct extends PhortuneProductImplementation {
private $ref;
public function loadImplementationsForRefs(
PhabricatorUser $viewer,
array $refs) {
$results = array();
foreach ($refs as $key => $ref) {
$product = new PhortuneAdHocProduct();
$product->ref = $ref;
$results[$key] = $product;
}
return $results;
}
public function getRef() {
return $this->ref;
}
public function getName(PhortuneProduct $product) {
return pht('Ad-Hoc Product');
}
public function getPurchaseName(
PhortuneProduct $product,
PhortunePurchase $purchase) {
return coalesce(
$purchase->getMetadataValue('adhoc.name'),
$this->getName($product));
}
public function getPriceAsCurrency(PhortuneProduct $product) {
return PhortuneCurrency::newEmptyCurrency();
}
}
Function Calls
None |
Stats
MD5 | a3471d6cb35f62c38a6df09940850344 |
Eval Count | 0 |
Decode Time | 91 ms |