From: Tim Otten Date: Thu, 22 Dec 2016 21:52:52 +0000 (-0600) Subject: (NFC) CRM_*_Tokens - Reduce redundant docs X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=298795cdd970959faedbbf8479fd98a1d0f4685b;p=civicrm-core.git (NFC) CRM_*_Tokens - Reduce redundant docs This is an offshoot from the conversation on #9563. --- diff --git a/CRM/Activity/Tokens.php b/CRM/Activity/Tokens.php index def80cbd85..cb52863221 100644 --- a/CRM/Activity/Tokens.php +++ b/CRM/Activity/Tokens.php @@ -56,11 +56,7 @@ class CRM_Activity_Tokens extends \Civi\Token\AbstractTokenSubscriber { } /** - * Check is active. - * - * @param \Civi\Token\TokenProcessor $processor - * - * @return bool + * @inheritDoc */ public function checkActive(\Civi\Token\TokenProcessor $processor) { // Extracted from scheduled-reminders code. See the class description. @@ -69,6 +65,9 @@ class CRM_Activity_Tokens extends \Civi\Token\AbstractTokenSubscriber { && $processor->context['actionMapping']->getEntity() === 'civicrm_activity'; } + /** + * @inheritDoc + */ public function alterActionScheduleQuery(\Civi\ActionSchedule\Event\MailingQueryEvent $e) { if ($e->mapping->getEntity() !== 'civicrm_activity') { return; @@ -94,17 +93,7 @@ class CRM_Activity_Tokens extends \Civi\Token\AbstractTokenSubscriber { } /** - * Evaluate the content of a single token. - * - * @param \Civi\Token\TokenRow $row - * The record for which we want token values. - * @param string $entity - * @param string $field - * The name of the token field. - * @param mixed $prefetch - * Any data that was returned by the prefetch(). - * - * @return mixed + * @inheritDoc */ public function evaluateToken(\Civi\Token\TokenRow $row, $entity, $field, $prefetch = NULL) { $actionSearchResult = $row->context['actionSearchResult']; diff --git a/CRM/Contribute/Tokens.php b/CRM/Contribute/Tokens.php index d199af8a37..38892ca226 100644 --- a/CRM/Contribute/Tokens.php +++ b/CRM/Contribute/Tokens.php @@ -109,18 +109,7 @@ class CRM_Contribute_Tokens extends \Civi\Token\AbstractTokenSubscriber { } /** - * Evaluate the content of a single token. - * - * @param \Civi\Token\TokenRow $row - * The record for which we want token values. - * @param string $entity - * @param string $field - * The name of the token field. - * @param mixed $prefetch - * Any data that was returned by the prefetch(). - * - * @return mixed - * @throws \CRM_Core_Exception + * @inheritDoc */ public function evaluateToken(\Civi\Token\TokenRow $row, $entity, $field, $prefetch = NULL) { $actionSearchResult = $row->context['actionSearchResult']; diff --git a/CRM/Event/Tokens.php b/CRM/Event/Tokens.php index 4be77944cc..17d65caa15 100644 --- a/CRM/Event/Tokens.php +++ b/CRM/Event/Tokens.php @@ -63,11 +63,7 @@ class CRM_Event_Tokens extends \Civi\Token\AbstractTokenSubscriber { } /** - * Check something about being active. - * - * @param \Civi\Token\TokenProcessor $processor - * - * @return bool + * @inheritDoc */ public function checkActive(\Civi\Token\TokenProcessor $processor) { // Extracted from scheduled-reminders code. See the class description. @@ -95,17 +91,7 @@ LEFT JOIN civicrm_phone phone ON phone.id = lb.phone_id } /** - * Evaluate the content of a single token. - * - * @param \Civi\Token\TokenRow $row - * The record for which we want token values. - * @param string $entity - * @param string $field - * The name of the token field. - * @param mixed $prefetch - * Any data that was returned by the prefetch(). - * - * @return mixed + * @inheritDoc */ public function evaluateToken(\Civi\Token\TokenRow $row, $entity, $field, $prefetch = NULL) { $actionSearchResult = $row->context['actionSearchResult']; diff --git a/CRM/Member/Tokens.php b/CRM/Member/Tokens.php index d9e1662ad7..24eca3f823 100644 --- a/CRM/Member/Tokens.php +++ b/CRM/Member/Tokens.php @@ -56,11 +56,7 @@ class CRM_Member_Tokens extends \Civi\Token\AbstractTokenSubscriber { } /** - * Is token active. - * - * @param \Civi\Token\TokenProcessor $processor - * - * @return bool + * @inheritDoc */ public function checkActive(\Civi\Token\TokenProcessor $processor) { // Extracted from scheduled-reminders code. See the class description. @@ -83,17 +79,7 @@ class CRM_Member_Tokens extends \Civi\Token\AbstractTokenSubscriber { } /** - * Evaluate the content of a single token. - * - * @param \Civi\Token\TokenRow $row - * The record for which we want token values. - * @param string $entity - * @param string $field - * The name of the token field. - * @param mixed $prefetch - * Any data that was returned by the prefetch(). - * - * @return mixed + * @inheritDoc */ public function evaluateToken(\Civi\Token\TokenRow $row, $entity, $field, $prefetch = NULL) { $actionSearchResult = $row->context['actionSearchResult'];