Checkstyle fixes
authorSaurabh Batra <saurabh.batra96@gmail.com>
Fri, 4 Mar 2016 09:48:16 +0000 (15:18 +0530)
committerSaurabh Batra <saurabh.batra96@gmail.com>
Fri, 4 Mar 2016 09:48:16 +0000 (15:18 +0530)
CRM/Activity/BAO/Query.php
CRM/Case/BAO/Query.php
CRM/Event/BAO/Query.php
CRM/Member/BAO/Query.php

index 52c98c257d62218db376135cee166a5639df33fc..30fde6d7fdea5b9e7d2651c2146c2d3001d12000 100644 (file)
@@ -581,4 +581,5 @@ class CRM_Activity_BAO_Query {
     }
     return empty($errors) ? TRUE : $errors;
   }
+
 }
index 6f72cfefd666dd2b26b05942022be2a6d13170fa..51f1831316a0059c0a45d1e15051a0ffb3e94b35 100644 (file)
@@ -692,7 +692,6 @@ case_relation_type.id = case_relationship.relationship_type_id )";
     $form->addElement('hidden', 'case_to_date_range_error');
     $form->addFormRule(array('CRM_Case_BAO_Query', 'formRule'), $form);
 
-
     $form->assign('validCiviCase', TRUE);
 
     //give options when all cases are accessible.
index 457652a2ae451a70bba6ffe76784183629e243b0..62b92014b879347dcd537b3874c5033f23c347a6 100644 (file)
@@ -285,7 +285,7 @@ class CRM_Event_BAO_Query {
               $value = $extractEventId[2];
               $where = $query->_where[$grouping][$key];
             }
-            else if (strstr($val, 'civicrm_event.id IN')) {
+            elseif (strstr($val, 'civicrm_event.id IN')) {
               //extract the first event id if multiple events are selected
               preg_match('/civicrm_event.id IN \(\"(\d+)/', $val, $matches);
               $value = $matches[1];
@@ -296,7 +296,7 @@ class CRM_Event_BAO_Query {
             $extractEventId = explode(" ", $exEventId);
             $value = $extractEventId[2];
           }
-          else if(!empty($matches[1])) {
+          elseif (!empty($matches[1])) {
             $value = $matches[1];
           }
           $where = $query->_where[$grouping][$key];
index 9202fefd06ffb2b6a79411725f0e0a3e84e50578..6505aec009beff0bc0b07201971f1fe057da85e8 100644 (file)
@@ -525,4 +525,5 @@ class CRM_Member_BAO_Query {
 
     return empty($errors) ? TRUE : $errors;
   }
+
 }