]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/filter/payment/class_PaymentDiscoveryFilter.php
Copyright year updated, converted double->single quotes
[core.git] / inc / classes / main / filter / payment / class_PaymentDiscoveryFilter.php
index 7a75a7c84835256ce52eddfc382633caa858011a..99ca1be4a8779f350a3f0f0cfd9a9b3e43ab957c 100644 (file)
@@ -4,11 +4,11 @@
  * returns an object holding all available payment system for the requested
  * type.
  *
- * @author             Roland Haeder <webmaster@ship-simu.org>
+ * @author             Roland Haeder <webmaster@shipsimu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 - 2013 Core Developer Team
  * @license            GNU GPL 3.0 or any newer version
- * @link               http://www.ship-simu.org
+ * @link               http://www.shipsimu.org
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -46,7 +46,7 @@ class PaymentDiscoveryFilter extends BaseFilter implements Filterable {
         * @return      $filterInstance         An instance of this filter class
         * @throws      NullPointerException    If the resolver is not set
         */
-       public final static function createPaymentDiscoveryFilter (PerformableAction $actionInstance) {
+       public static final function createPaymentDiscoveryFilter (PerformableAction $actionInstance) {
                // Get a new instance
                $filterInstance = new PaymentDiscoveryFilter();
 
@@ -108,9 +108,9 @@ class PaymentDiscoveryFilter extends BaseFilter implements Filterable {
 
                        // Remember this instance if all wents fine
                        Registry::getRegistry()->addInstance('payments', $discoveryInstance);
-               } catch (ConfigEntryNotFoundException $e) {
+               } catch (NoConfigEntryException $e) {
                        // Something bad happend
-                       $requestInstance->requestIsValid(false);
+                       $requestInstance->requestIsValid(FALSE);
 
                        // Add a message to the response
                        $responseInstance->addFatalMessage('payment_config_entry_error');
@@ -118,9 +118,9 @@ class PaymentDiscoveryFilter extends BaseFilter implements Filterable {
 
                        // Abort here
                        throw new FilterChainException($this, self::EXCEPTION_FILTER_CHAIN_INTERCEPTED);
-               } catch (ClassNotFoundException $e) {
+               } catch (NoClassException $e) {
                        // Something bad happend
-                       $requestInstance->requestIsValid(false);
+                       $requestInstance->requestIsValid(FALSE);
 
                        // Add a message to the response
                        $responseInstance->addFatalMessage('payment_class_error');