A few more comment fixes. Remove unused var rather than document it
authoreileen <emcnaughton@wikimedia.org>
Tue, 10 Jan 2017 02:02:21 +0000 (15:02 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 10 Jan 2017 02:02:21 +0000 (15:02 +1300)
CRM/Core/BAO/UFGroup.php
CRM/Core/Form.php
CRM/Event/Form/EventFees.php
CRM/Mailing/BAO/Mailing.php
CRM/Mailing/Event/BAO/Delivered.php
CRM/Mailing/Event/BAO/Opened.php
CRM/Report/Form.php
CRM/Utils/Hook.php

index 4910f4ad711cd6e8e33d27b3dc897d0accd9c9ea..de3cb70ce0dd7fe8bd5fb50f0e19de093dfb635c 100644 (file)
@@ -943,8 +943,7 @@ class CRM_Core_BAO_UFGroup extends CRM_Core_DAO_UFGroup {
   }
 
   /**
-   * Given a contact id and a field set, return the values from the db
-   * for this contact
+   * Given a contact id and a field set, return the values from the db.
    *
    * @param int $cid
    * @param array $fields
@@ -958,6 +957,8 @@ class CRM_Core_BAO_UFGroup extends CRM_Core_DAO_UFGroup {
    * @param bool $absolute
    *   Return urls in absolute form (useful when sending an email).
    * @param null $additionalWhereClause
+   *
+   * @return null|array
    */
   public static function getValues(
     $cid, &$fields, &$values,
index 213dfead88ff7d3af7af1a4baebe2d7e80afe8c7..fadce93d65a196bd7b2ed04ebe999ddccfe49726 100644 (file)
@@ -2315,6 +2315,8 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
    *
    * @param array $params
    *   Form input params, default to $this->_params.
+   *
+   * @return string
    */
   public function assignBillingName($params = array()) {
     $name = '';
index d971cdcb41344934fd3c117191839097135813c5..0a01313035e396ccc0efc0a843ddc7d216ac5815 100644 (file)
@@ -64,10 +64,11 @@ class CRM_Event_Form_EventFees {
   }
 
   /**
-   * This function sets the default values for the form in edit/view mode
-   * the default values are retrieved from the database
+   * This function sets the default values for the form in edit/view mode.
    *
    * @param CRM_Core_Form $form
+   *
+   * @return array
    */
   public static function setDefaultValues(&$form) {
     $defaults = array();
@@ -249,7 +250,6 @@ class CRM_Event_Form_EventFees {
   /**
    * This function sets the default values for price set.
    *
-   *
    * @param int $participantID
    * @param int $eventID
    * @param bool $includeQtyZero
index a648d09087bdd6726d18268ae225418380785403..80056cae312ba64c2f2b9273bff94ab6cf14fbd5 100644 (file)
@@ -3173,10 +3173,11 @@ AND        m.id = %1
   }
 
   /**
-   * Whitelist of possible values for the entity_table field
+   * White-list of possible values for the entity_table field.
+   *
    * @return array
    */
-  public static function mailingGroupEntityTables($context = NULL) {
+  public static function mailingGroupEntityTables() {
     return array(
       CRM_Contact_BAO_Group::getTableName() => 'Group',
       CRM_Mailing_BAO_Mailing::getTableName() => 'Mailing',
index 762ea46103439afc418ab84de5ed5f3ff574f057..a0d9ecdc0688d48473cc40aa15904be011b4ffcc 100644 (file)
@@ -44,6 +44,8 @@ class CRM_Mailing_Event_BAO_Delivered extends CRM_Mailing_Event_DAO_Delivered {
    *
    * @param array $params
    *   Associative array of delivery event values.
+   *
+   * @return \CRM_Mailing_Event_BAO_Delivered
    */
   public static function &create(&$params) {
     $q = &CRM_Mailing_Event_BAO_Queue::verify($params['job_id'],
index d8019e8bffc29ab810503eca49af97e75ae2212c..c882eaf096164886bbf919ebb5dcea0cda29a01b 100644 (file)
@@ -44,6 +44,8 @@ class CRM_Mailing_Event_BAO_Opened extends CRM_Mailing_Event_DAO_Opened {
    *
    * @param int $queue_id
    *   The Queue Event ID of the recipient.
+   *
+   * @return bool
    */
   public static function open($queue_id) {
     // First make sure there's a matching queue event.
index 2c64486c46b6b305a2d92b0a0742b2c8972f4b6c..bb85fd82d7ca833192dbb0b34e1068e34d4b0075 100644 (file)
@@ -4667,6 +4667,8 @@ LEFT JOIN civicrm_contact {$field['alias']} ON {$field['alias']}.id = {$this->_a
    * @param object $query
    * @param string $alias
    * @param bool $return
+   *
+   * @return string
    */
   public function getPermissionedFTQuery(&$query, $alias = NULL, $return = FALSE) {
     if (!CRM_Financial_BAO_FinancialType::isACLFinancialTypeStatus()) {
index 3f45a8fb71bf834be9e5e3e742d8d7ac4d79d55f..7e4224e26529962868db45e2379a883c14e0d9b4 100644 (file)
@@ -2199,8 +2199,11 @@ abstract class CRM_Utils_Hook {
   }
 
   /**
-   * This hook is called for bypass a few civicrm urls from IDS check
-   * @param array $skip list of civicrm url;
+   * This hook is called for bypass a few civicrm urls from IDS check.
+   *
+   * @param array $skip list of civicrm urls
+   *
+   * @return mixed
    */
   public static function idsException(&$skip) {
     return self::singleton()->invoke(1, $skip, self::$_nullObject,
@@ -2215,6 +2218,8 @@ abstract class CRM_Utils_Hook {
    * @param string $geoProvider
    * @param array $values
    * @param SimpleXMLElement $xml
+   *
+   * @return mixed
    */
   public static function geocoderFormat($geoProvider, &$values, $xml) {
     return self::singleton()->invoke(3, $geoProvider, $values, $xml,