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 PholioMockStatusTransaction extends PholioMockTransactionType { co..
Decoded Output download
<?php
final class PholioMockStatusTransaction
extends PholioMockTransactionType {
const TRANSACTIONTYPE = 'status';
public function generateOldValue($object) {
return $object->getStatus();
}
public function applyInternalEffects($object, $value) {
$object->setStatus($value);
}
public function getTitle() {
$new = $this->getNewValue();
if ($new == PholioMock::STATUS_CLOSED) {
return pht(
'%s closed this mock.',
$this->renderAuthor());
} else {
return pht(
'%s opened this mock.',
$this->renderAuthor());
}
}
public function getTitleForFeed() {
$new = $this->getNewValue();
if ($new == PholioMock::STATUS_CLOSED) {
return pht(
'%s closed mock %s.',
$this->renderAuthor(),
$this->renderObject());
} else {
return pht(
'%s opened mock %s.',
$this->renderAuthor(),
$this->renderObject());
}
}
public function getIcon() {
$new = $this->getNewValue();
if ($new == PholioMock::STATUS_CLOSED) {
return 'fa-ban';
} else {
return 'fa-check';
}
}
public function getColor() {
$new = $this->getNewValue();
if ($new == PholioMock::STATUS_CLOSED) {
return PhabricatorTransactions::COLOR_INDIGO;
} else {
return PhabricatorTransactions::COLOR_GREEN;
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PholioMockStatusTransaction
extends PholioMockTransactionType {
const TRANSACTIONTYPE = 'status';
public function generateOldValue($object) {
return $object->getStatus();
}
public function applyInternalEffects($object, $value) {
$object->setStatus($value);
}
public function getTitle() {
$new = $this->getNewValue();
if ($new == PholioMock::STATUS_CLOSED) {
return pht(
'%s closed this mock.',
$this->renderAuthor());
} else {
return pht(
'%s opened this mock.',
$this->renderAuthor());
}
}
public function getTitleForFeed() {
$new = $this->getNewValue();
if ($new == PholioMock::STATUS_CLOSED) {
return pht(
'%s closed mock %s.',
$this->renderAuthor(),
$this->renderObject());
} else {
return pht(
'%s opened mock %s.',
$this->renderAuthor(),
$this->renderObject());
}
}
public function getIcon() {
$new = $this->getNewValue();
if ($new == PholioMock::STATUS_CLOSED) {
return 'fa-ban';
} else {
return 'fa-check';
}
}
public function getColor() {
$new = $this->getNewValue();
if ($new == PholioMock::STATUS_CLOSED) {
return PhabricatorTransactions::COLOR_INDIGO;
} else {
return PhabricatorTransactions::COLOR_GREEN;
}
}
}
Function Calls
None |
Stats
MD5 | ffbb3d6779004e6363034ebcd9561621 |
Eval Count | 0 |
Decode Time | 94 ms |