@@ -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 | } |
@@ -71,8 +71,7 @@ |
||
71 | 71 | $response = $this->getMapperResponse()->map($responseRaw); |
72 | 72 | |
73 | 73 | $this->protocol($request, $response); |
74 | - } |
|
75 | - catch (Exception $e) { |
|
74 | + } catch (Exception $e) { |
|
76 | 75 | $this->protocolException($e, $request); |
77 | 76 | throw $e; |
78 | 77 | } |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | $requestParams = $this->getMapperRequest()->map($request); |
68 | 68 | |
69 | - if($request->isFrontendApiCall() === false) { |
|
69 | + if ($request->isFrontendApiCall() === false) { |
|
70 | 70 | $responseRaw = $this->getAdapter()->request($requestParams); |
71 | 71 | } else { |
72 | 72 | $responseRaw = $request->getFrontendApiResponse(); |
@@ -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 | } |
@@ -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,7 +74,7 @@ |
||
74 | 74 | |
75 | 75 | $requestParams = $this->getMapperRequest()->map($request); |
76 | 76 | |
77 | - if($request->isFrontendApiCall() === false) { |
|
77 | + if ($request->isFrontendApiCall() === false) { |
|
78 | 78 | $responseRaw = $this->getAdapter()->request($requestParams); |
79 | 79 | } else { |
80 | 80 | $responseRaw = $request->getFrontendApiResponse(); |
@@ -83,8 +83,7 @@ |
||
83 | 83 | $response = $this->getMapperResponse()->map($responseRaw); |
84 | 84 | |
85 | 85 | $this->protocol($request, $response); |
86 | - } |
|
87 | - catch (Exception $e) { |
|
86 | + } catch (Exception $e) { |
|
88 | 87 | $this->protocolException($e, $request); |
89 | 88 | throw $e; |
90 | 89 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | * @param null|Payone_Api_Response_Interface $response |
45 | 45 | */ |
46 | 46 | public function protocol(Payone_Api_Request_Interface $request, |
47 | - Payone_Api_Response_Interface $response = null) |
|
47 | + Payone_Api_Response_Interface $response = null) |
|
48 | 48 | { |
49 | 49 | $request->setApplyFilters($this->getServiceApplyFilters()); |
50 | 50 | $response->setApplyFilters($this->getServiceApplyFilters()); |
@@ -72,8 +72,7 @@ |
||
72 | 72 | $response = $this->getMapperResponse()->map($responseRaw); |
73 | 73 | |
74 | 74 | $this->protocol($request, $response); |
75 | - } |
|
76 | - catch (Exception $e) { |
|
75 | + } catch (Exception $e) { |
|
77 | 76 | $this->protocolException($e, $request); |
78 | 77 | throw $e; |
79 | 78 | } |