@@ -46,14 +46,11 @@ |
||
46 | 46 | |
47 | 47 | if ($this->isValid()) { |
48 | 48 | $response = new Payone_Api_Response_CreditCardCheck_Valid($params); |
49 | - } |
|
50 | - elseif ($this->isInvalid()) { |
|
49 | + } elseif ($this->isInvalid()) { |
|
51 | 50 | $response = new Payone_Api_Response_CreditCardCheck_Invalid($params); |
52 | - } |
|
53 | - elseif ($this->isError()) { |
|
51 | + } elseif ($this->isError()) { |
|
54 | 52 | $response = new Payone_Api_Response_Error($params); |
55 | - } |
|
56 | - else { |
|
53 | + } else { |
|
57 | 54 | throw new Payone_Api_Exception_UnknownStatus(); |
58 | 55 | } |
59 | 56 |
@@ -47,11 +47,9 @@ |
||
47 | 47 | |
48 | 48 | if ($this->isApproved()) { |
49 | 49 | $response = new Payone_Api_Response_Capture_Approved($params); |
50 | - } |
|
51 | - elseif ($this->isError()) { |
|
50 | + } elseif ($this->isError()) { |
|
52 | 51 | $response = new Payone_Api_Response_Error($params); |
53 | - } |
|
54 | - else { |
|
52 | + } else { |
|
55 | 53 | throw new Payone_Api_Exception_UnknownStatus(); |
56 | 54 | } |
57 | 55 |
@@ -46,11 +46,9 @@ |
||
46 | 46 | |
47 | 47 | if ($this->isApproved()) { |
48 | 48 | $response = new Payone_Api_Response_Management_ManageMandate_Approved($params); |
49 | - } |
|
50 | - elseif ($this->isError()) { |
|
49 | + } elseif ($this->isError()) { |
|
51 | 50 | $response = new Payone_Api_Response_Error($params); |
52 | - } |
|
53 | - else { |
|
51 | + } else { |
|
54 | 52 | throw new Payone_Api_Exception_UnknownStatus(); |
55 | 53 | } |
56 | 54 |
@@ -46,14 +46,11 @@ |
||
46 | 46 | |
47 | 47 | if ($this->isValid()) { |
48 | 48 | $response = new Payone_Api_Response_Consumerscore_Valid($params); |
49 | - } |
|
50 | - elseif ($this->isInvalid()) { |
|
49 | + } elseif ($this->isInvalid()) { |
|
51 | 50 | $response = new Payone_Api_Response_Consumerscore_Invalid($params); |
52 | - } |
|
53 | - elseif ($this->isError()) { |
|
51 | + } elseif ($this->isError()) { |
|
54 | 52 | $response = new Payone_Api_Response_Error($params); |
55 | - } |
|
56 | - else { |
|
53 | + } else { |
|
57 | 54 | throw new Payone_Api_Exception_UnknownStatus(); |
58 | 55 | } |
59 | 56 |
@@ -47,11 +47,9 @@ |
||
47 | 47 | |
48 | 48 | if ($this->isApproved()) { |
49 | 49 | $response = new Payone_Api_Response_CreateAccess_Approved($params); |
50 | - } |
|
51 | - elseif ($this->isError()) { |
|
50 | + } elseif ($this->isError()) { |
|
52 | 51 | $response = new Payone_Api_Response_Error($params); |
53 | - } |
|
54 | - else { |
|
52 | + } else { |
|
55 | 53 | throw new Payone_Api_Exception_UnknownStatus(); |
56 | 54 | } |
57 | 55 |
@@ -46,14 +46,11 @@ |
||
46 | 46 | |
47 | 47 | if ($this->isApproved()) { |
48 | 48 | $response = new Payone_Api_Response_Authorization_Approved($params); |
49 | - } |
|
50 | - elseif ($this->isRedirect()) { |
|
49 | + } elseif ($this->isRedirect()) { |
|
51 | 50 | $response = new Payone_Api_Response_Authorization_Redirect($params); |
52 | - } |
|
53 | - elseif ($this->isError()) { |
|
51 | + } elseif ($this->isError()) { |
|
54 | 52 | $response = new Payone_Api_Response_Error($params); |
55 | - } |
|
56 | - else { |
|
53 | + } else { |
|
57 | 54 | throw new Payone_Api_Exception_UnknownStatus(); |
58 | 55 | } |
59 | 56 |
@@ -34,17 +34,13 @@ |
||
34 | 34 | |
35 | 35 | if ($this->isApproved()) { |
36 | 36 | $response = new Payone_Api_Response_Genericpayment_Approved($params); |
37 | - } |
|
38 | - elseif ($this->isOk()) { |
|
37 | + } elseif ($this->isOk()) { |
|
39 | 38 | $response = new Payone_Api_Response_Genericpayment_Ok($params); |
40 | - } |
|
41 | - elseif ($this->isRedirect()) { |
|
39 | + } elseif ($this->isRedirect()) { |
|
42 | 40 | $response = new Payone_Api_Response_Genericpayment_Redirect($params); |
43 | - } |
|
44 | - elseif ($this->isError()) { |
|
41 | + } elseif ($this->isError()) { |
|
45 | 42 | $response = new Payone_Api_Response_Error($params); |
46 | - } |
|
47 | - else { |
|
43 | + } else { |
|
48 | 44 | throw new Payone_Api_Exception_UnknownStatus(); |
49 | 45 | } |
50 | 46 |
@@ -46,11 +46,9 @@ |
||
46 | 46 | |
47 | 47 | if ($this->isApproved()) { |
48 | 48 | $response = new Payone_Api_Response_Vauthorization_Approved($params); |
49 | - } |
|
50 | - elseif ($this->isError()) { |
|
49 | + } elseif ($this->isError()) { |
|
51 | 50 | $response = new Payone_Api_Response_Error($params); |
52 | - } |
|
53 | - else { |
|
51 | + } else { |
|
54 | 52 | throw new Payone_Api_Exception_UnknownStatus(); |
55 | 53 | } |
56 | 54 |
@@ -46,17 +46,13 @@ |
||
46 | 46 | |
47 | 47 | if ($this->isValid()) { |
48 | 48 | $response = new Payone_Api_Response_BankAccountCheck_Valid($params); |
49 | - } |
|
50 | - elseif ($this->isInvalid()) { |
|
49 | + } elseif ($this->isInvalid()) { |
|
51 | 50 | $response = new Payone_Api_Response_BankAccountCheck_Invalid($params); |
52 | - } |
|
53 | - elseif ($this->isBlocked()) { |
|
51 | + } elseif ($this->isBlocked()) { |
|
54 | 52 | $response = new Payone_Api_Response_BankAccountCheck_Blocked($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 |