CRM-17571 - fixing checkstyles warnings
authorUelen Paulo <uelenpaulo@gmail.com>
Wed, 9 Mar 2016 12:35:53 +0000 (09:35 -0300)
committerUelen Paulo <uelenpaulo@gmail.com>
Wed, 9 Mar 2016 12:35:53 +0000 (09:35 -0300)
CRM/Activity/BAO/Activity.php
CRM/Contact/Form/Search/Builder.php
CRM/Core/SelectValues.php

index 7a41374b58556491f267c3a55f90dcacc446e919..c6392b453815a5ac6a5ac0898a7eeb342037ac4e 100644 (file)
@@ -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);
index 29af74fd15da9d7559ef4abb72d49c98ecf38f34..9f4995cf767d69a9c287c5aa6f2a98491f34e1b6 100644 (file)
@@ -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
index aa4f9ab56daf5da3c538e55373b4e4f8edc179a6..fd89fae817248ff2aab2e3465052e666c5fae338 100644 (file)
@@ -910,7 +910,7 @@ class CRM_Core_SelectValues {
    *
    * @return array
    */
-  public static function getSearchBuilderOperators($fieldType = null) {
+  public static function getSearchBuilderOperators($fieldType = NULL) {
     $builderOperators = array(
       '=' => '=',
       '!=' => '≠',