Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / repository / xaction / PhabricatorRepositoryDescriptionTransaction.php
blob9e86d80d06bcead9f8d89b15e0e40c79ed778484
1 <?php
3 final class PhabricatorRepositoryDescriptionTransaction
4 extends PhabricatorRepositoryTransactionType {
6 const TRANSACTIONTYPE = 'repo:description';
8 public function generateOldValue($object) {
9 return $object->getDetail('description');
12 public function applyInternalEffects($object, $value) {
13 $object->setDetail('description', $value);
16 public function getTitle() {
17 return pht(
18 '%s updated the description for this repository.',
19 $this->renderAuthor());
22 public function hasChangeDetailView() {
23 return true;
26 public function getMailDiffSectionHeader() {
27 return pht('CHANGES TO REPOSITORY DESCRIPTION');
30 public function newChangeDetailView() {
31 $viewer = $this->getViewer();
33 return id(new PhabricatorApplicationTransactionTextDiffDetailView())
34 ->setViewer($viewer)
35 ->setOldText($this->getOldValue())
36 ->setNewText($this->getNewValue());
39 public function newRemarkupChanges() {
40 $changes = array();
42 $changes[] = $this->newRemarkupChange()
43 ->setOldValue($this->getOldValue())
44 ->setNewValue($this->getNewValue());
46 return $changes;