mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-19 03:50:54 +01:00
Update function name to follow naming convention.
See: <http://github.com/facebook/phabricator/pull/575> Reviewed by: epriestley
This commit is contained in:
parent
ce1dbbec3c
commit
2e5065feb5
3 changed files with 3 additions and 3 deletions
|
@ -1041,7 +1041,7 @@ abstract class HeraldAdapter {
|
||||||
break;
|
break;
|
||||||
case HeraldPreCommitRefAdapter::FIELD_REF_CHANGE:
|
case HeraldPreCommitRefAdapter::FIELD_REF_CHANGE:
|
||||||
$change_map =
|
$change_map =
|
||||||
PhabricatorRepositoryPushLog::getHeraldChangeflagConditionOptions();
|
PhabricatorRepositoryPushLog::getHeraldChangeFlagConditionOptions();
|
||||||
foreach ($value as $index => $val) {
|
foreach ($value as $index => $val) {
|
||||||
$name = idx($change_map, $val);
|
$name = idx($change_map, $val);
|
||||||
if ($name) {
|
if ($name) {
|
||||||
|
|
|
@ -464,7 +464,7 @@ final class HeraldRuleController extends HeraldController {
|
||||||
}
|
}
|
||||||
|
|
||||||
$changeflag_options =
|
$changeflag_options =
|
||||||
PhabricatorRepositoryPushLog::getHeraldChangeflagConditionOptions();
|
PhabricatorRepositoryPushLog::getHeraldChangeFlagConditionOptions();
|
||||||
Javelin::initBehavior(
|
Javelin::initBehavior(
|
||||||
'herald-rule-editor',
|
'herald-rule-editor',
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -52,7 +52,7 @@ final class PhabricatorRepositoryPushLog
|
||||||
->setPusherPHID($viewer->getPHID());
|
->setPusherPHID($viewer->getPHID());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getHeraldChangeflagConditionOptions() {
|
public static function getHeraldChangeFlagConditionOptions() {
|
||||||
return array(
|
return array(
|
||||||
PhabricatorRepositoryPushLog::CHANGEFLAG_ADD =>
|
PhabricatorRepositoryPushLog::CHANGEFLAG_ADD =>
|
||||||
pht('change creates ref'),
|
pht('change creates ref'),
|
||||||
|
|
Loading…
Reference in a new issue