@@ -56,8 +56,7 @@ |
||
56 | 56 | $response = $this->getMapperResponse()->map($responseRaw); |
57 | 57 | |
58 | 58 | $this->protocol($request, $response); |
59 | - } |
|
60 | - catch (Exception $e) { |
|
59 | + } catch (Exception $e) { |
|
61 | 60 | $this->protocolException($e, $request); |
62 | 61 | throw $e; |
63 | 62 | } |
@@ -53,7 +53,7 @@ |
||
53 | 53 | |
54 | 54 | $response->setRawResponse($adapter->getRawResponse()); |
55 | 55 | |
56 | - $this->protocol($request, $response); |
|
56 | + $this->protocol($request, $response); |
|
57 | 57 | } |
58 | 58 | catch (Exception $e) { |
59 | 59 | $this->protocolException($e, $request); |
@@ -54,8 +54,7 @@ |
||
54 | 54 | $response->setRawResponse($adapter->getRawResponse()); |
55 | 55 | |
56 | 56 | $this->protocol($request, $response); |
57 | - } |
|
58 | - catch (Exception $e) { |
|
57 | + } catch (Exception $e) { |
|
59 | 58 | $this->protocolException($e, $request); |
60 | 59 | throw $e; |
61 | 60 | } |
@@ -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 | } |
@@ -73,8 +73,7 @@ |
||
73 | 73 | $response = $this->getMapperResponse()->map($responseRaw); |
74 | 74 | |
75 | 75 | $this->protocol($request, $response); |
76 | - } |
|
77 | - catch (Exception $e) { |
|
76 | + } catch (Exception $e) { |
|
78 | 77 | $this->protocolException($e, $request); |
79 | 78 | throw $e; |
80 | 79 | } |
@@ -74,8 +74,7 @@ |
||
74 | 74 | $response = $this->getMapperResponse()->map($responseRaw); |
75 | 75 | |
76 | 76 | $this->protocol($request, $response); |
77 | - } |
|
78 | - catch (Exception $e) { |
|
77 | + } catch (Exception $e) { |
|
79 | 78 | $this->protocolException($e, $request); |
80 | 79 | throw $e; |
81 | 80 | } |
@@ -74,8 +74,7 @@ |
||
74 | 74 | $response = $this->getMapperResponse()->map($responseRaw); |
75 | 75 | |
76 | 76 | $this->protocol($request, $response); |
77 | - } |
|
78 | - catch (Exception $e) { |
|
77 | + } catch (Exception $e) { |
|
79 | 78 | $this->protocolException($e, $request); |
80 | 79 | throw $e; |
81 | 80 | } |
@@ -81,8 +81,7 @@ |
||
81 | 81 | $response = $mapper->map($responseRaw); |
82 | 82 | |
83 | 83 | $this->protocol($request, $response); |
84 | - } |
|
85 | - catch (Exception $e) { |
|
84 | + } catch (Exception $e) { |
|
86 | 85 | $this->protocolException($e, $request); |
87 | 86 | throw $e; |
88 | 87 | } |
@@ -61,11 +61,9 @@ |
||
61 | 61 | |
62 | 62 | if (curl_getinfo($curl, CURLINFO_HTTP_CODE) != 200) { |
63 | 63 | throw new Payone_Api_Exception_InvalidResponse(); |
64 | - } |
|
65 | - elseif (curl_error($curl)) { |
|
64 | + } elseif (curl_error($curl)) { |
|
66 | 65 | $response[] = "errormessage=" . curl_errno($curl) . ": " . curl_error($curl); |
67 | - } |
|
68 | - else { |
|
66 | + } else { |
|
69 | 67 | $response = explode("\n", $result); |
70 | 68 | } |
71 | 69 |
@@ -47,11 +47,9 @@ |
||
47 | 47 | |
48 | 48 | if ($this->isOk()) { |
49 | 49 | $response = new Payone_Api_Response_Management_UpdateAccess_Ok($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 |