Ian province abbreviation patch - issue 724
[civicrm-core.git] / CRM / Contribute / Page / SubscriptionStatus.php
index 11855ff884c4ecface0c36cdc0c7dd5d83c5da45..834d9d64d536bba88249a7df6b8e7ec757a2918f 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
- * $Id$
- *
+ * @copyright CiviCRM LLC (c) 2004-2015
  */
-
 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
+   * @return null
    */
   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);
+    $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();
   }
+
 }