1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-11 17:32:41 +01:00
phorge-phorge/src/applications/differential/parser/DifferentialCustomFieldDependsOnParser.php
epriestley 592591e715 Clean up various pieces of dead/obsolete Differential code
Summary:
Ref T2222.

  - Removes `DifferentialTasksAttacher`, which has had no callsites for a very long time.
  - Moves `differential.getrevisioncomments` off `DifferentialCommentQuery`.
  - Moves Releeph churn field off `DifferentialCommentQuery`.
  - Removes dead code in `DifferentialRevisionViewController`.
  - Removes `DifferentialException` (no references).
  - Removes `DifferentialRevision->loadComments()` (no callsites).
  - Removes `DifferentialRevision->loadReviewedBy()` (all callsites updated).
  - Removes `DifferentialCommentQuery` (all callsites updated).

Test Plan: Mostly a lot of `grep`.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2222

Differential Revision: https://secure.phabricator.com/D8476
2014-03-11 13:02:19 -07:00

32 lines
503 B
PHP

<?php
final class DifferentialCustomFieldDependsOnParser
extends PhabricatorCustomFieldMonogramParser {
protected function getPrefixes() {
return array(
'depends on',
);
}
protected function getInfixes() {
return array(
'diff',
'diffs',
'change',
'changes',
'rev',
'revs',
'revision',
);
}
protected function getSuffixes() {
return array();
}
protected function getMonogramPattern() {
return '[Dd]\d+';
}
}