whitespace and comments
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 15 Sep 2014 04:22:59 +0000 (16:22 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 15 Sep 2014 04:32:49 +0000 (16:32 +1200)
CRM/Contact/BAO/Query.php
CRM/Core/DAO.php

index f7391601a20701c881601f15ba65ab719127954d..ca8f7693e13e375839c7afa5b717d490e9c7ced2 100644 (file)
@@ -4030,7 +4030,7 @@ WHERE  id IN ( $groupIDs )
     }
     // also get values array for relation_target_name
     // for relatinship search we always do wildcard
-    $relationType = $this->getWhereValues('relation_type_id', $grouping);    
+    $relationType = $this->getWhereValues('relation_type_id', $grouping);
     $targetName = $this->getWhereValues('relation_target_name', $grouping);
     $relStatus = $this->getWhereValues('relation_status', $grouping);
     $relPermission = $this->getWhereValues('relation_permission', $grouping);
@@ -4059,7 +4059,7 @@ WHERE  id IN ( $groupIDs )
       $params = array('id' => $rel[0]);
       $rType = CRM_Contact_BAO_RelationshipType::retrieve($params, $rTypeValues);
     }
-    if ( empty($rTypeValues) ) {    
+    if (empty($rTypeValues)) {
       // if we don't know which end of the relationship we are dealing with we'll create a temp table
       //@todo unless we are dealing with a target group
       self::$_relType = 'reciprocal';
index 28948d83e624b2e2d5e8f5f27aa1c73599a1f4e5..0399e88fb1be649ccdfd12863b147127033a02c7 100644 (file)
@@ -115,7 +115,7 @@ class CRM_Core_DAO extends DB_DataObject {
    * @param $fieldName
    * @param $fieldDef
    * @param $params
-   * @param $daoName
+   *
    */
   protected function assignTestFK($fieldName, $fieldDef, $params) {
     $required = CRM_Utils_Array::value('required', $fieldDef);
@@ -1351,6 +1351,11 @@ FROM   civicrm_domain
   /**
    * Given the component id, compute the contact id
    * since its used for things like send email
+   *
+   * @param $componentIDs
+   * @param $tableName
+   *
+   * @return array
    */
   public static function &getContactIDsFromComponent(&$componentIDs, $tableName) {
     $contactIDs = array();
@@ -1488,8 +1493,15 @@ SELECT contact_id
 
   /**
    * Creates a test object, including any required objects it needs via recursion
-   *createOnly: only create in database, do not store or return the objects (useful for perf testing)
-   *ONLY USE FOR TESTING
+   * createOnly: only create in database, do not store or return the objects (useful for perf testing)
+   * ONLY USE FOR TESTING
+   *
+   * @param $daoName
+   * @param array $params
+   * @param int $numObjects
+   * @param bool $createOnly
+   *
+   * @return
    */
   static function createTestObject(
     $daoName,
@@ -1535,6 +1547,7 @@ SELECT contact_id
           }
         }
       }
+
       $object->save();
 
       if (!$createOnly) {
@@ -1559,6 +1572,9 @@ SELECT contact_id
   /**
    * deletes the this object plus any dependent objects that are associated with it
    * ONLY USE FOR TESTING
+   *
+   * @param $daoName
+   * @param array $params
    */
   static function deleteTestObjects($daoName, $params = array(
     )) {