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 PhabricatorAuthMessageTextTransaction extends PhabricatorAuthMessageT..
Decoded Output download
<?php
final class PhabricatorAuthMessageTextTransaction
extends PhabricatorAuthMessageTransactionType {
const TRANSACTIONTYPE = 'text';
public function generateOldValue($object) {
return $object->getMessageText();
}
public function applyInternalEffects($object, $value) {
$object->setMessageText($value);
}
public function getTitle() {
return pht(
'%s updated the message text.',
$this->renderAuthor());
}
public function hasChangeDetailView() {
return true;
}
public function getMailDiffSectionHeader() {
return pht('CHANGES TO MESSAGE');
}
public function newChangeDetailView() {
$viewer = $this->getViewer();
return id(new PhabricatorApplicationTransactionTextDiffDetailView())
->setViewer($viewer)
->setOldText($this->getOldValue())
->setNewText($this->getNewValue());
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorAuthMessageTextTransaction
extends PhabricatorAuthMessageTransactionType {
const TRANSACTIONTYPE = 'text';
public function generateOldValue($object) {
return $object->getMessageText();
}
public function applyInternalEffects($object, $value) {
$object->setMessageText($value);
}
public function getTitle() {
return pht(
'%s updated the message text.',
$this->renderAuthor());
}
public function hasChangeDetailView() {
return true;
}
public function getMailDiffSectionHeader() {
return pht('CHANGES TO MESSAGE');
}
public function newChangeDetailView() {
$viewer = $this->getViewer();
return id(new PhabricatorApplicationTransactionTextDiffDetailView())
->setViewer($viewer)
->setOldText($this->getOldValue())
->setNewText($this->getNewValue());
}
}
Function Calls
None |
Stats
MD5 | 5c728b1efc82a6dc24cb07736d7d2c7d |
Eval Count | 0 |
Decode Time | 82 ms |