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 PhabricatorRepositorySymbolLanguagesTransaction extends PhabricatorRe..
Decoded Output download
<?php
final class PhabricatorRepositorySymbolLanguagesTransaction
extends PhabricatorRepositoryTransactionType {
const TRANSACTIONTYPE = 'repo:symbol-language';
public function generateOldValue($object) {
return $object->getSymbolLanguages();
}
public function applyInternalEffects($object, $value) {
$object->setDetail('symbol-languages', $value);
}
public function getTitle() {
$old = $this->getOldValue();
$new = $this->getNewValue();
if ($old) {
$display_old = implode(', ', $old);
} else {
$display_old = pht('Any');
}
if ($new) {
$display_new = implode(', ', $new);
} else {
$display_new = pht('Any');
}
return pht(
'%s changed indexed languages from %s to %s.',
$this->renderAuthor(),
$this->renderValue($display_old),
$this->renderValue($display_new));
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorRepositorySymbolLanguagesTransaction
extends PhabricatorRepositoryTransactionType {
const TRANSACTIONTYPE = 'repo:symbol-language';
public function generateOldValue($object) {
return $object->getSymbolLanguages();
}
public function applyInternalEffects($object, $value) {
$object->setDetail('symbol-languages', $value);
}
public function getTitle() {
$old = $this->getOldValue();
$new = $this->getNewValue();
if ($old) {
$display_old = implode(', ', $old);
} else {
$display_old = pht('Any');
}
if ($new) {
$display_new = implode(', ', $new);
} else {
$display_new = pht('Any');
}
return pht(
'%s changed indexed languages from %s to %s.',
$this->renderAuthor(),
$this->renderValue($display_old),
$this->renderValue($display_new));
}
}
Function Calls
None |
Stats
MD5 | fa9820e9a4d23f84a34991f3b42e7a69 |
Eval Count | 0 |
Decode Time | 110 ms |