INFRA-132 - CRM/ - PHPStorm cleanup
[civicrm-core.git] / CRM / Report / Page / TemplateList.php
index 2eac142299809878cec3567b534633dc8425817c..85da0509c84efa342af7bc11818540504e069e52 100644 (file)
@@ -2,7 +2,7 @@
 
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -40,7 +40,7 @@
 class CRM_Report_Page_TemplateList extends CRM_Core_Page {
 
   /**
-   * @param null $compID
+   * @param int $compID
    * @param null $grouping
    *
    * @return array
@@ -54,7 +54,8 @@ class CRM_Report_Page_TemplateList extends CRM_Core_Page {
     if ($compID) {
       if ($compID == 99) {
         $compClause = " AND v.component_id IS NULL ";
-      } else {
+      }
+      else {
         $compClause = " AND v.component_id = {$compID} ";
       }
     }
@@ -84,8 +85,8 @@ LEFT  JOIN civicrm_component comp
     }
     $sql .= " ORDER BY  v.weight ";
 
-    $dao    = CRM_Core_DAO::executeQuery($sql);
-    $rows   = array();
+    $dao = CRM_Core_DAO::executeQuery($sql);
+    $rows = array();
     $config = CRM_Core_Config::singleton();
     while ($dao->fetch()) {
       if ($dao->component_name != 'Contact' && $dao->component_name != $dao->grouping &&
@@ -107,11 +108,11 @@ LEFT  JOIN civicrm_component comp
   }
 
   /**
-   * run this page (figure out the action needed and perform it).
+   * Run this page (figure out the action needed and perform it).
    *
    * @return void
    */
-  function run() {
+  public function run() {
     $compID = CRM_Utils_Request::retrieve('compid', 'Positive', $this);
     $grouping = CRM_Utils_Request::retrieve('grp', 'String', $this);
     $rows = self::info($compID, $grouping);
@@ -120,4 +121,3 @@ LEFT  JOIN civicrm_component comp
     return parent::run();
   }
 }
-