Merge pull request #5232 from rohankatkar/batch9
[civicrm-core.git] / CRM / Contribute / Controller / Contribution.php
index a7de1ade19ce2e72bd42396f6e2e4df33fd81506..079e0af1bf78c81c24556829aa5e31b0036dd2b4 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        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  *
  * Typically the first form will display the search criteria and it's results
  *
- * The second form is used to process search results with the asscociated actions
+ * The second form is used to process search results with the associated actions
  *
  */
 class CRM_Contribute_Controller_Contribution extends CRM_Core_Controller {
 
   /**
-   * Class constructor
+   * Class constructor.
+   *
+   * @param string $title
+   * @param bool|int $action
+   * @param bool $modal
    */
-  function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
+  public function __construct($title = NULL, $action = CRM_Core_Action::NONE, $modal = TRUE) {
     parent::__construct($title, $modal);
 
     $this->_stateMachine = new CRM_Contribute_StateMachine_Contribution($this, $action);
@@ -68,9 +72,8 @@ class CRM_Contribute_Controller_Contribution extends CRM_Core_Controller {
     }
   }
 
-  function invalidKey() {
+  public function invalidKey() {
     $this->invalidKeyRedirect();
   }
 
 }
-