Merge pull request #4726 from atif-shaikh/CRM-5039
[civicrm-core.git] / CRM / Report / Page / InstanceList.php
index 24de971795c6bc2d91c9a119953ad05a7a8bb3e3..18c007fccc09ce7a8d42e02b3d3bda070a5a40e5 100644 (file)
@@ -2,9 +2,9 @@
 
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.4                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -29,7 +29,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
  *
  */
@@ -98,7 +98,8 @@ class CRM_Report_Page_InstanceList extends CRM_Core_Page {
       if ($this->compID == 99) {
         $report .= " AND v.component_id IS NULL ";
         $this->_compName = 'Contact';
-      } else {
+      }
+      else {
         $report .= " AND v.component_id = {$this->compID} ";
         $cmpName = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_Component', $this->compID,
           'name', 'id'
@@ -134,13 +135,12 @@ class CRM_Report_Page_InstanceList extends CRM_Core_Page {
           ORDER BY  v.weight";
 
     $dao = CRM_Core_DAO::executeQuery($sql, array(
-        1 => array(CRM_Core_Config::domainID(), 'Integer'),
-      ));
-
+      1 => array(CRM_Core_Config::domainID(), 'Integer'),
+    ));
 
     $config = CRM_Core_Config::singleton();
-    $rows   = array();
-    $url    = 'civicrm/report/instance';
+    $rows = array();
+    $url = 'civicrm/report/instance';
     while ($dao->fetch()) {
       if (in_array($dao->report_id, self::$_exceptions)) {
         continue;
@@ -172,12 +172,11 @@ class CRM_Report_Page_InstanceList extends CRM_Core_Page {
         }
       }
     }
-
     return $rows;
   }
 
   /**
-   * run this page (figure out the action needed and perform it).
+   * Run this page (figure out the action needed and perform it).
    *
    * @return void
    */
@@ -186,7 +185,7 @@ class CRM_Report_Page_InstanceList extends CRM_Core_Page {
     $this->ovID   = CRM_Utils_Request::retrieve('ovid', 'Positive', $this);
     $this->compID = CRM_Utils_Request::retrieve('compid', 'Positive', $this);
     $this->grouping = CRM_Utils_Request::retrieve('grp', 'String', $this);
-    
+
     $rows   = $this->info();
 
     $this->assign('list', $rows);