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 PhabricatorCalendarImportNameTransaction extends PhabricatorCalendarI..
Decoded Output download
<?php
final class PhabricatorCalendarImportNameTransaction
extends PhabricatorCalendarImportTransactionType {
const TRANSACTIONTYPE = 'calendar.import.name';
public function generateOldValue($object) {
return $object->getName();
}
public function applyInternalEffects($object, $value) {
$object->setName($value);
}
public function getTitle() {
$old = $this->getOldValue();
$new = $this->getNewValue();
if (!strlen($old)) {
return pht(
'%s named this import %s.',
$this->renderAuthor(),
$this->renderNewValue());
} else if (!strlen($new)) {
return pht(
'%s removed the name of this import (was: %s).',
$this->renderAuthor(),
$this->renderOldValue());
} else {
return pht(
'%s renamed this import from %s to %s.',
$this->renderAuthor(),
$this->renderOldValue(),
$this->renderNewValue());
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorCalendarImportNameTransaction
extends PhabricatorCalendarImportTransactionType {
const TRANSACTIONTYPE = 'calendar.import.name';
public function generateOldValue($object) {
return $object->getName();
}
public function applyInternalEffects($object, $value) {
$object->setName($value);
}
public function getTitle() {
$old = $this->getOldValue();
$new = $this->getNewValue();
if (!strlen($old)) {
return pht(
'%s named this import %s.',
$this->renderAuthor(),
$this->renderNewValue());
} else if (!strlen($new)) {
return pht(
'%s removed the name of this import (was: %s).',
$this->renderAuthor(),
$this->renderOldValue());
} else {
return pht(
'%s renamed this import from %s to %s.',
$this->renderAuthor(),
$this->renderOldValue(),
$this->renderNewValue());
}
}
}
Function Calls
None |
Stats
MD5 | 5c36086ea3a2038b5bcf1262a6a9fa6e |
Eval Count | 0 |
Decode Time | 94 ms |