@@ -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 | } |
@@ -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 | } |