Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/herald/PhabricatorProjectHeraldAction.php
| Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | protected function getActionEffectMap() { | ||||
| ); | ); | ||||
| } | } | ||||
| protected function renderActionEffectDescription($type, $data) { | protected function renderActionEffectDescription($type, $data) { | ||||
| switch ($type) { | switch ($type) { | ||||
| case self::DO_ADD_PROJECTS: | case self::DO_ADD_PROJECTS: | ||||
| return pht( | return pht( | ||||
| 'Added %s project(s): %s.', | 'Added %s project(s): %s.', | ||||
| new PhutilNumber(count($data)), | phutil_count($data), | ||||
| $this->renderHandleList($data)); | $this->renderHandleList($data)); | ||||
| case self::DO_REMOVE_PROJECTS: | case self::DO_REMOVE_PROJECTS: | ||||
| return pht( | return pht( | ||||
| 'Removed %s project(s): %s.', | 'Removed %s project(s): %s.', | ||||
| new PhutilNumber(count($data)), | phutil_count($data), | ||||
| $this->renderHandleList($data)); | $this->renderHandleList($data)); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||