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 PhabricatorProjectWorkboardTransaction extends PhabricatorProjectTran..
Decoded Output download
<?php
final class PhabricatorProjectWorkboardTransaction
extends PhabricatorProjectTransactionType {
const TRANSACTIONTYPE = 'project:hasworkboard';
public function generateOldValue($object) {
return (int)$object->getHasWorkboard();
}
public function generateNewValue($object, $value) {
return (int)$value;
}
public function applyInternalEffects($object, $value) {
$object->setHasWorkboard($value);
}
public function getTitle() {
$new = $this->getNewValue();
if ($new) {
return pht(
'%s enabled the workboard for this project.',
$this->renderAuthor());
} else {
return pht(
'%s disabled the workboard for this project.',
$this->renderAuthor());
}
}
public function shouldHide() {
return true;
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorProjectWorkboardTransaction
extends PhabricatorProjectTransactionType {
const TRANSACTIONTYPE = 'project:hasworkboard';
public function generateOldValue($object) {
return (int)$object->getHasWorkboard();
}
public function generateNewValue($object, $value) {
return (int)$value;
}
public function applyInternalEffects($object, $value) {
$object->setHasWorkboard($value);
}
public function getTitle() {
$new = $this->getNewValue();
if ($new) {
return pht(
'%s enabled the workboard for this project.',
$this->renderAuthor());
} else {
return pht(
'%s disabled the workboard for this project.',
$this->renderAuthor());
}
}
public function shouldHide() {
return true;
}
}
Function Calls
None |
Stats
MD5 | e2b8bcd57e3949235e2dff900445ab46 |
Eval Count | 0 |
Decode Time | 91 ms |