CRM-15917 - CiviReport - fix bug number in comment
[civicrm-core.git] / CRM / Contribute / Page / SubscriptionStatus.php
index b09f49c5b567b32654b6f9badf7266c75fe1f47d..ce232931c6a743c753cb4b3e1dfcde770abfd4b1 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.5                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
  | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
@@ -23,7 +23,7 @@
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  * $Id$
  *
  */
-
 class CRM_Contribute_Page_SubscriptionStatus extends CRM_Core_Page {
 
   /**
-   * This function is the main function that is called when the page loads,
+   * the main function that is called when the page loads,
    * it decides the which action has to be taken for the page.
    *
-   * return null
-   * @access public
+   * @return null
    */
-  function run() {
-    $task    = CRM_Utils_Request::retrieve('task', 'String',   CRM_Core_DAO::$_nullObject);
-    $result  = CRM_Utils_Request::retrieve('result', 'Integer',  CRM_Core_DAO::$_nullObject);
+  public function run() {
+    $task = CRM_Utils_Request::retrieve('task', 'String', CRM_Core_DAO::$_nullObject);
+    $result = CRM_Utils_Request::retrieve('result', 'Integer', CRM_Core_DAO::$_nullObject);
 
-    $this->assign('task',   $task);
+    $this->assign('task', $task);
     $this->assign('result', $result);
 
-    if ( $task == 'billing' ) {
-      $session   = CRM_Core_Session::singleton();
+    if ($task == 'billing') {
+      $session = CRM_Core_Session::singleton();
       $tplParams = $session->get('resultParams');
-      foreach ( $tplParams as $key => $val ) {
+      foreach ($tplParams as $key => $val) {
         $this->assign($key, $val);
       }
     }
 
     return parent::run();
   }
-}
 
+}