Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/storage/DifferentialTransaction.php
| Show First 20 Lines • Show All 562 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
| case PhabricatorTransactions::TYPE_EDGE: | case PhabricatorTransactions::TYPE_EDGE: | ||||
| switch ($this->getMetadataValue('edge:type')) { | switch ($this->getMetadataValue('edge:type')) { | ||||
| case DifferentialRevisionHasReviewerEdgeType::EDGECONST: | case DifferentialRevisionHasReviewerEdgeType::EDGECONST: | ||||
| return pht( | return pht( | ||||
| 'The reviewers you are trying to add are already reviewing '. | 'The reviewers you are trying to add are already reviewing '. | ||||
| 'this revision.'); | 'this revision.'); | ||||
| } | } | ||||
| break; | break; | ||||
| case DifferentialTransaction::TYPE_ACTION: | case self::TYPE_ACTION: | ||||
| switch ($this->getNewValue()) { | switch ($this->getNewValue()) { | ||||
| case DifferentialAction::ACTION_CLOSE: | case DifferentialAction::ACTION_CLOSE: | ||||
| return pht('This revision is already closed.'); | return pht('This revision is already closed.'); | ||||
| case DifferentialAction::ACTION_ABANDON: | case DifferentialAction::ACTION_ABANDON: | ||||
| return pht('This revision has already been abandoned.'); | return pht('This revision has already been abandoned.'); | ||||
| case DifferentialAction::ACTION_RECLAIM: | case DifferentialAction::ACTION_RECLAIM: | ||||
| return pht( | return pht( | ||||
| 'You can not reclaim this revision because his revision is '. | 'You can not reclaim this revision because his revision is '. | ||||
| ▲ Show 20 Lines • Show All 86 Lines • Show Last 20 Lines | |||||