@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
at recaptime-dev/main 24 lines 570 B view raw
1<?php 2 3final class DiffusionPreCommitContentDiffContentRemovedHeraldField 4 extends DiffusionPreCommitContentHeraldField { 5 6 const FIELDCONST = 'diffusion.pre.commit.diff.old'; 7 8 public function getHeraldFieldName() { 9 return pht('Removed diff content'); 10 } 11 12 public function getFieldGroupKey() { 13 return DiffusionChangeHeraldFieldGroup::FIELDGROUPKEY; 14 } 15 16 public function getHeraldFieldValue($object) { 17 return $this->getAdapter()->getDiffContent('-'); 18 } 19 20 protected function getHeraldFieldStandardType() { 21 return self::STANDARD_TEXT_MAP; 22 } 23 24}