@@ -62,7 +62,7 @@ |
||
| 62 | 62 | */ |
| 63 | 63 | public function __toString() |
| 64 | 64 | { |
| 65 | - if($this->applyFilters) { |
|
| 65 | + if ($this->applyFilters) { |
|
| 66 | 66 | $result = $this->applyFilters->apply($this->toArray()); |
| 67 | 67 | } else { |
| 68 | 68 | $protocolFactory = new Payone_Protocol_Factory(); |
@@ -83,8 +83,7 @@ |
||
| 83 | 83 | { |
| 84 | 84 | if ($data === null) { |
| 85 | 85 | continue; |
| 86 | - } |
|
| 87 | - elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 86 | + } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 88 | 87 | $result[$key] = $data; |
| 89 | 88 | } |
| 90 | 89 | } |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | /** @var string */ |
| 28 | 28 | protected $key = Payone_Enum_ClearingType::PAYOLUTION; |
| 29 | 29 | |
| 30 | - /** |
|
| 30 | + /** |
|
| 31 | 31 | * @return string |
| 32 | 32 | */ |
| 33 | 33 | public function getKey() |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | /** @var string */ |
| 28 | 28 | protected $key = Payone_Enum_ClearingType::PAYOLUTIONDEBIT; |
| 29 | 29 | |
| 30 | - /** |
|
| 30 | + /** |
|
| 31 | 31 | * @return string |
| 32 | 32 | */ |
| 33 | 33 | public function getKey() |
@@ -164,7 +164,7 @@ |
||
| 164 | 164 | */ |
| 165 | 165 | public function getCustomerid() |
| 166 | 166 | { |
| 167 | - // See above |
|
| 167 | + // See above |
|
| 168 | 168 | // return $this->customerid; |
| 169 | 169 | } |
| 170 | 170 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | const GIROPAY = 'GPY'; |
| 37 | 37 | const EPS_ONLINE_BANK_TRANSFER = 'EPS'; |
| 38 | 38 | const POSTFINANCE_EFINANCE = 'PFF'; |
| 39 | - const POSTFINANCE_CARD = 'PFC'; |
|
| 39 | + const POSTFINANCE_CARD = 'PFC'; |
|
| 40 | 40 | const IDEAL = 'IDL'; |
| 41 | 41 | const P24 = 'P24'; |
| 42 | 42 | const BANCONTACT = 'BCT'; |
@@ -46,17 +46,13 @@ |
||
| 46 | 46 | |
| 47 | 47 | if ($this->isApproved()) { |
| 48 | 48 | $response = new Payone_Api_Response_Preauthorization_Approved($params); |
| 49 | - } |
|
| 50 | - elseif ($this->isRedirect()) { |
|
| 49 | + } elseif ($this->isRedirect()) { |
|
| 51 | 50 | $response = new Payone_Api_Response_Preauthorization_Redirect($params); |
| 52 | - } |
|
| 53 | - elseif ($this->isPending()) { |
|
| 51 | + } elseif ($this->isPending()) { |
|
| 54 | 52 | $response = new Payone_Api_Response_Preauthorization_Pending($params); |
| 55 | - } |
|
| 56 | - elseif ($this->isError()) { |
|
| 53 | + } elseif ($this->isError()) { |
|
| 57 | 54 | $response = new Payone_Api_Response_Error($params); |
| 58 | - } |
|
| 59 | - else { |
|
| 55 | + } else { |
|
| 60 | 56 | throw new Payone_Api_Exception_UnknownStatus(); |
| 61 | 57 | } |
| 62 | 58 | |
@@ -83,8 +83,7 @@ |
||
| 83 | 83 | { |
| 84 | 84 | if ($data === null) { |
| 85 | 85 | continue; |
| 86 | - } |
|
| 87 | - elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 86 | + } elseif ($data instanceof Payone_Protocol_Service_ApplyFilters == false) { |
|
| 88 | 87 | $result[$key] = $data; |
| 89 | 88 | } |
| 90 | 89 | } |
@@ -29,16 +29,16 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | |
| 31 | 31 | /** Cash */ |
| 32 | - const BARZAHLEN = 'csh'; // Default csh mapping |
|
| 32 | + const BARZAHLEN = 'csh'; // Default csh mapping |
|
| 33 | 33 | |
| 34 | 34 | /** Cash on delivery */ |
| 35 | - const CASHONDELIVERY = 'cod'; // Default cod mapping |
|
| 35 | + const CASHONDELIVERY = 'cod'; // Default cod mapping |
|
| 36 | 36 | |
| 37 | 37 | /** Creditcards */ |
| 38 | - const CREDITCARD = 'cc'; // Default cc mapping |
|
| 38 | + const CREDITCARD = 'cc'; // Default cc mapping |
|
| 39 | 39 | |
| 40 | 40 | /** Debit payments */ |
| 41 | - const DEBITPAYMENT = 'elv'; // Default elv mapping |
|
| 41 | + const DEBITPAYMENT = 'elv'; // Default elv mapping |
|
| 42 | 42 | |
| 43 | 43 | /** Financing */ |
| 44 | 44 | const PAYOLUTION = 'fnc'; |
@@ -51,11 +51,11 @@ discard block |
||
| 51 | 51 | const KLARNAINVOICING = 'fnc'; |
| 52 | 52 | const KLARNAINSTALLMENT = 'fnc'; |
| 53 | 53 | const KLARNADIRECTDEBIT = 'fnc'; |
| 54 | - const FINANCING = 'fnc'; // Default fnc mapping |
|
| 54 | + const FINANCING = 'fnc'; // Default fnc mapping |
|
| 55 | 55 | |
| 56 | 56 | /** Invoices */ |
| 57 | 57 | const PAYMENTGUARANTEEINVOICE = 'rec'; |
| 58 | - const INVOICE = 'rec'; // Default rec mapping |
|
| 58 | + const INVOICE = 'rec'; // Default rec mapping |
|
| 59 | 59 | |
| 60 | 60 | /** Online Banktransfer */ |
| 61 | 61 | const ONLINEBANKTRANSFERBCT = 'sb'; |
@@ -67,10 +67,10 @@ discard block |
||
| 67 | 67 | const ONLINEBANKTRANSFERGIROPAY = 'sb'; |
| 68 | 68 | const ONLINEBANKTRANSFERSOFORT = 'sb'; |
| 69 | 69 | const ONLINEBANKTRANSFERTRUSTLY = 'sb'; |
| 70 | - const ONLINEBANKTRANSFER = 'sb'; // Default sb mapping |
|
| 70 | + const ONLINEBANKTRANSFER = 'sb'; // Default sb mapping |
|
| 71 | 71 | |
| 72 | 72 | /** Pre-payments */ |
| 73 | - const ADVANCEPAYMENT = 'vor'; // Default vor mapping |
|
| 73 | + const ADVANCEPAYMENT = 'vor'; // Default vor mapping |
|
| 74 | 74 | |
| 75 | 75 | /** Wallets */ |
| 76 | 76 | const AMAZONPAY = 'wlt'; |
@@ -79,5 +79,5 @@ discard block |
||
| 79 | 79 | const WALLETPAYDIREKT = 'wlt'; |
| 80 | 80 | const WALLETPAYPALEXPRESS = 'wlt'; |
| 81 | 81 | const WALLETWECHATPAY = 'wlt'; |
| 82 | - const WALLET = 'wlt'; // Default wlt mapping |
|
| 82 | + const WALLET = 'wlt'; // Default wlt mapping |
|
| 83 | 83 | } |