@@ -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,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,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 | |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | $response = $this->getMapperResponse()->map($responseRaw); |
| 76 | 76 | |
| 77 | 77 | $this->protocol($request, $response); |
| 78 | - } |
|
| 79 | - catch (Exception $e) { |
|
| 78 | + } catch (Exception $e) { |
|
| 80 | 79 | $this->protocolException($e, $request); |
| 81 | 80 | throw $e; |
| 82 | 81 | } |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | $response = $this->getMapperResponse()->map($responseRaw); |
| 76 | 76 | |
| 77 | 77 | $this->protocol($request, $response); |
| 78 | - } |
|
| 79 | - catch (Exception $e) { |
|
| 78 | + } catch (Exception $e) { |
|
| 80 | 79 | $this->protocolException($e, $request); |
| 81 | 80 | throw $e; |
| 82 | 81 | } |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | $response = $this->getMapperResponse()->map($responseRaw); |
| 76 | 76 | |
| 77 | 77 | $this->protocol($request, $response); |
| 78 | - } |
|
| 79 | - catch (Exception $e) { |
|
| 78 | + } catch (Exception $e) { |
|
| 80 | 79 | $this->protocolException($e, $request); |
| 81 | 80 | throw $e; |
| 82 | 81 | } |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | $response = $this->getMapperResponse()->map($responseRaw); |
| 76 | 76 | |
| 77 | 77 | $this->protocol($request, $response); |
| 78 | - } |
|
| 79 | - catch (Exception $e) { |
|
| 78 | + } catch (Exception $e) { |
|
| 80 | 79 | $this->protocolException($e, $request); |
| 81 | 80 | throw $e; |
| 82 | 81 | } |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | $response = $this->getMapperResponse()->map($responseRaw); |
| 76 | 76 | |
| 77 | 77 | $this->protocol($request, $response); |
| 78 | - } |
|
| 79 | - catch (Exception $e) { |
|
| 78 | + } catch (Exception $e) { |
|
| 80 | 79 | $this->protocolException($e, $request); |
| 81 | 80 | throw $e; |
| 82 | 81 | } |
@@ -75,8 +75,7 @@ |
||
| 75 | 75 | $response = $this->getMapperResponse()->map($responseRaw); |
| 76 | 76 | |
| 77 | 77 | $this->protocol($request, $response); |
| 78 | - } |
|
| 79 | - catch (Exception $e) { |
|
| 78 | + } catch (Exception $e) { |
|
| 80 | 79 | $this->protocolException($e, $request); |
| 81 | 80 | throw $e; |
| 82 | 81 | } |