Merge remote-tracking branch 'upstream/4.5' into 4.5-master-2015-02-02-18-36-16
[civicrm-core.git] / CRM / Extension / Manager / Report.php
index b1d9313a4c65466adc5ee95afa2ad8a4df1faa32..dedbc6b7d85f15bda82fdd9cbe728472920a2cc5 100644 (file)
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  * This class stores logic for managing CiviCRM extensions.
@@ -99,8 +99,8 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base {
     //        }
 
     $customReports = $this->getCustomReportsByName();
-    $cr          = $this->getCustomReportsById();
-    $id          = $cr[$customReports[$info->key]];
+    $cr = $this->getCustomReportsById();
+    $id = $cr[$customReports[$info->key]];
     $optionValue = CRM_Core_BAO_OptionValue::del($id);
 
     return $optionValue ? TRUE : FALSE;
@@ -111,8 +111,8 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base {
    */
   public function onPreDisable(CRM_Extension_Info $info) {
     $customReports = $this->getCustomReportsByName();
-    $cr          = $this->getCustomReportsById();
-    $id          = $cr[$customReports[$info->key]];
+    $cr = $this->getCustomReportsById();
+    $id = $cr[$customReports[$info->key]];
     $optionValue = CRM_Core_BAO_OptionValue::setIsActive($id, 0);
   }
 
@@ -121,8 +121,8 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base {
    */
   public function onPreEnable(CRM_Extension_Info $info) {
     $customReports = $this->getCustomReportsByName();
-    $cr          = $this->getCustomReportsById();
-    $id          = $cr[$customReports[$info->key]];
+    $cr = $this->getCustomReportsById();
+    $id = $cr[$customReports[$info->key]];
     $optionValue = CRM_Core_BAO_OptionValue::setIsActive($id, 1);
   }
 
@@ -139,4 +139,5 @@ class CRM_Extension_Manager_Report extends CRM_Extension_Manager_Base {
   public function getCustomReportsById() {
     return CRM_Core_OptionGroup::values(self::REPORT_GROUP_NAME, FALSE, FALSE, FALSE, NULL, 'id', FALSE, TRUE);
   }
+
 }