From f121d10747112ddfb99d4e5463a73e6fa4e18713 Mon Sep 17 00:00:00 2001 From: yashodha Date: Tue, 16 Jun 2015 12:19:44 +0530 Subject: [PATCH] fix whitespaces --- CRM/Activity/Form/Task.php | 4 ++-- CRM/Activity/Selector/Search.php | 2 +- CRM/Report/Form/Activity.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Activity/Form/Task.php b/CRM/Activity/Form/Task.php index 4ed8c5839f..0ce725dcae 100644 --- a/CRM/Activity/Form/Task.php +++ b/CRM/Activity/Form/Task.php @@ -118,8 +118,8 @@ class CRM_Activity_Form_Task extends CRM_Core_Form { $activityClause = NULL; $components = CRM_Core_Component::getNames(); - foreach($components as $componentID => $componentName) { - if (! CRM_Core_Permission::check("access $componentName")) { + foreach ($components as $componentID => $componentName) { + if (!CRM_Core_Permission::check("access $componentName")) { $componentClause = " (activity_type.component_id IS NULL OR activity_type.component_id <> {$componentID}) "; } } diff --git a/CRM/Activity/Selector/Search.php b/CRM/Activity/Selector/Search.php index ade5b26779..d094b4d697 100644 --- a/CRM/Activity/Selector/Search.php +++ b/CRM/Activity/Selector/Search.php @@ -176,7 +176,7 @@ class CRM_Activity_Selector_Search extends CRM_Core_Selector_Base implements CRM // CRM-12675 $components = CRM_Core_Component::getNames(); foreach ($components as $componentID => $componentName) { - if (! CRM_Core_Permission::check("access $componentName")) { + if (!CRM_Core_Permission::check("access $componentName")) { $componentClause[] = " (activity_type.component_id IS NULL OR activity_type.component_id <> {$componentID}) "; } } diff --git a/CRM/Report/Form/Activity.php b/CRM/Report/Form/Activity.php index 2c101a2e9d..0766288043 100644 --- a/CRM/Report/Form/Activity.php +++ b/CRM/Report/Form/Activity.php @@ -600,7 +600,7 @@ class CRM_Report_Form_Activity extends CRM_Report_Form { // CRM-12675 $components = CRM_Core_Component::getNames(); foreach ($components as $componentID => $componentName) { - if (! CRM_Core_Permission::check("access $componentName")) { + if (!CRM_Core_Permission::check("access $componentName")) { $clauses[] = " ({$this->_aliases['civicrm_option_value']}.component_id IS NULL OR {$this->_aliases['civicrm_option_value']}.component_id <> {$componentID}) "; } } -- 2.25.1