Merge pull request #4865 from eileenmcnaughton/my-first-factory
[civicrm-core.git] / CRM / Core / Payment / PayPalIPN.php
index 3c1e65891604d246bfc3cf94acc74e07faf297a7..ae915749c82a2aff7e3244d67f9425f8cbb7545b 100644 (file)
@@ -39,7 +39,7 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
   /**
    * Constructor
    */
-  function __construct() {
+  public function __construct() {
     parent::__construct();
   }
 
@@ -51,7 +51,7 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
    *
    * @return mixed
    */
-  static function retrieve($name, $type, $location = 'POST', $abort = TRUE) {
+  public static function retrieve($name, $type, $location = 'POST', $abort = TRUE) {
     static $store = NULL;
     $value = CRM_Utils_Request::retrieve($name, $type, $store,
       FALSE, NULL, $location
@@ -70,7 +70,7 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
    * @param $objects
    * @param $first
    */
-  function recur(&$input, &$ids, &$objects, $first) {
+  public function recur(&$input, &$ids, &$objects, $first) {
     if (!isset($input['txnType'])) {
       CRM_Core_Error::debug_log_message("Could not find txn_type in input request");
       echo "Failure: Invalid parameters<p>";
@@ -226,7 +226,8 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
    * @param bool $recur
    * @param bool $first
    */
-  function single(&$input, &$ids, &$objects,
+  function single(
+    &$input, &$ids, &$objects,
     $recur = FALSE,
     $first = FALSE
   ) {
@@ -285,8 +286,8 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
     $this->completeTransaction($input, $ids, $objects, $transaction, $recur);
   }
 
-  function main() {
-   //@todo - this could be refactored like PayPalProIPN & a test could be added
+  public function main() {
+    //@todo - this could be refactored like PayPalProIPN & a test could be added
 
     $objects = $ids = $input = array();
     $component = CRM_Utils_Array::value('module', $_GET);
@@ -342,7 +343,7 @@ class CRM_Core_Payment_PayPalIPN extends CRM_Core_Payment_BaseIPN {
    * @param $input
    * @param $ids
    */
-  function getInput(&$input, &$ids) {
+  public function getInput(&$input, &$ids) {
     if (!$this->getBillingID($ids)) {
       return FALSE;
     }