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