Merge branch 'master' into master-civimail-abtest
[civicrm-core.git] / CRM / Core / BAO / Phone.php
index 31d9cfdee7c9c93c12d369aaf937cc79e7a50dde..57712aeb1b3d6df71def7aca1307c7090696fc87 100644 (file)
@@ -44,6 +44,12 @@ class CRM_Core_BAO_Phone extends CRM_Core_DAO_Phone {
    *
    * @param array $params input parameters
    */
+  /**
+   * @param array $params
+   *
+   * @return object
+   * @throws API_Exception
+   */
   static function create($params) {
     // Ensure mysql phone function exists
     CRM_Core_DAO::checkSqlFunctionsExist();
@@ -60,7 +66,7 @@ class CRM_Core_BAO_Phone extends CRM_Core_DAO_Phone {
   }
 
   /**
-   * takes an associative array and adds phone
+   * Takes an associative array and adds phone
    *
    * @param array  $params         (reference ) an assoc array of name/value pairs
    *
@@ -111,8 +117,7 @@ class CRM_Core_BAO_Phone extends CRM_Core_DAO_Phone {
    * @access public
    * @static
    */
-  static function allPhones($id, $updateBlankLocInfo = FALSE, $type = NULL, $filters = array(
-    )) {
+  static function allPhones($id, $updateBlankLocInfo = FALSE, $type = NULL, $filters = array()) {
     if (!$id) {
       return NULL;
     }
@@ -178,6 +183,8 @@ ORDER BY civicrm_phone.is_primary DESC,  phone_id ASC ";
    * @param array $entityElements the array containing entity_id and
    * entity_table name
    *
+   * @param null $type
+   *
    * @return array  the array of phone ids which are potential numbers
    * @access public
    * @static