From: Saurabh Batra Date: Fri, 4 Mar 2016 09:48:16 +0000 (+0530) Subject: Checkstyle fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=948c107f787c34cb2a3169a52325d07a06ceecbd;p=civicrm-core.git Checkstyle fixes --- diff --git a/CRM/Activity/BAO/Query.php b/CRM/Activity/BAO/Query.php index 52c98c257d..30fde6d7fd 100644 --- a/CRM/Activity/BAO/Query.php +++ b/CRM/Activity/BAO/Query.php @@ -581,4 +581,5 @@ class CRM_Activity_BAO_Query { } return empty($errors) ? TRUE : $errors; } + } diff --git a/CRM/Case/BAO/Query.php b/CRM/Case/BAO/Query.php index 6f72cfefd6..51f1831316 100644 --- a/CRM/Case/BAO/Query.php +++ b/CRM/Case/BAO/Query.php @@ -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. diff --git a/CRM/Event/BAO/Query.php b/CRM/Event/BAO/Query.php index 457652a2ae..62b92014b8 100644 --- a/CRM/Event/BAO/Query.php +++ b/CRM/Event/BAO/Query.php @@ -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]; diff --git a/CRM/Member/BAO/Query.php b/CRM/Member/BAO/Query.php index 9202fefd06..6505aec009 100644 --- a/CRM/Member/BAO/Query.php +++ b/CRM/Member/BAO/Query.php @@ -525,4 +525,5 @@ class CRM_Member_BAO_Query { return empty($errors) ? TRUE : $errors; } + }