From ed56d4819cc5ba1baf4d27c21a65758cc2fa604b Mon Sep 17 00:00:00 2001 From: Uelen Paulo Date: Wed, 9 Mar 2016 09:35:53 -0300 Subject: [PATCH] CRM-17571 - fixing checkstyles warnings --- CRM/Activity/BAO/Activity.php | 4 ++-- CRM/Contact/Form/Search/Builder.php | 4 ++-- CRM/Core/SelectValues.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php index 7a41374b58..c6392b4538 100644 --- a/CRM/Activity/BAO/Activity.php +++ b/CRM/Activity/BAO/Activity.php @@ -2173,13 +2173,13 @@ AND cl.modified_id = c.id 'title' => ts('Activity Type'), 'name' => 'activity_type', 'type' => CRM_Utils_Type::T_STRING, - 'searchByLabel' => true, + 'searchByLabel' => TRUE, ), 'activity_status' => array( 'title' => ts('Activity Status'), 'name' => 'activity_status', 'type' => CRM_Utils_Type::T_STRING, - 'searchByLabel' => true, + 'searchByLabel' => TRUE, ), ); $fields = array_merge($Activityfields, $exportableFields); diff --git a/CRM/Contact/Form/Search/Builder.php b/CRM/Contact/Form/Search/Builder.php index 29af74fd15..9f4995cf76 100644 --- a/CRM/Contact/Form/Search/Builder.php +++ b/CRM/Contact/Form/Search/Builder.php @@ -102,11 +102,11 @@ class CRM_Contact_Form_Search_Builder extends CRM_Contact_Form_Search { } // it's necessary to know which of the fields are from string data type if (isset($field['type']) && $field['type'] === CRM_Utils_Type::T_STRING) { - $stringFields[] = $name; + $stringFields[] = $name; } // it's necessary to know which of the fields are searchable by label if (isset($field['searchByLabel']) && $field['searchByLabel']) { - $searchByLabelFields[] = $name; + $searchByLabelFields[] = $name; } } // Add javascript diff --git a/CRM/Core/SelectValues.php b/CRM/Core/SelectValues.php index aa4f9ab56d..fd89fae817 100644 --- a/CRM/Core/SelectValues.php +++ b/CRM/Core/SelectValues.php @@ -910,7 +910,7 @@ class CRM_Core_SelectValues { * * @return array */ - public static function getSearchBuilderOperators($fieldType = null) { + public static function getSearchBuilderOperators($fieldType = NULL) { $builderOperators = array( '=' => '=', '!=' => '≠', -- 2.25.1