Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/editor/DifferentialDiffEditor.php
Show First 20 Lines • Show All 202 Lines • ▼ Show 20 Lines | protected function buildHeraldAdapter( | ||||
array $xactions) { | array $xactions) { | ||||
$adapter = id(new HeraldDifferentialDiffAdapter()) | $adapter = id(new HeraldDifferentialDiffAdapter()) | ||||
->setDiff($object); | ->setDiff($object); | ||||
return $adapter; | return $adapter; | ||||
} | } | ||||
protected function didApplyHeraldRules( | |||||
PhabricatorLiskDAO $object, | |||||
HeraldAdapter $adapter, | |||||
HeraldTranscript $transcript) { | |||||
$xactions = array(); | |||||
return $xactions; | |||||
} | |||||
private function updateDiffFromDict(DifferentialDiff $diff, $dict) { | private function updateDiffFromDict(DifferentialDiff $diff, $dict) { | ||||
$diff | $diff | ||||
->setSourcePath(idx($dict, 'sourcePath')) | ->setSourcePath(idx($dict, 'sourcePath')) | ||||
->setSourceMachine(idx($dict, 'sourceMachine')) | ->setSourceMachine(idx($dict, 'sourceMachine')) | ||||
->setBranch(idx($dict, 'branch')) | ->setBranch(idx($dict, 'branch')) | ||||
->setCreationMethod(idx($dict, 'creationMethod')) | ->setCreationMethod(idx($dict, 'creationMethod')) | ||||
->setAuthorPHID(idx($dict, 'authorPHID', $this->getActor())) | ->setAuthorPHID(idx($dict, 'authorPHID', $this->getActor())) | ||||
->setBookmark(idx($dict, 'bookmark')) | ->setBookmark(idx($dict, 'bookmark')) | ||||
Show All 11 Lines |