@@ -72,7 +72,7 @@ |
||
72 | 72 | |
73 | 73 | $response->setRawResponse($adapter->getRawResponse()); |
74 | 74 | |
75 | - $this->protocol($request, $response); |
|
75 | + $this->protocol($request, $response); |
|
76 | 76 | } |
77 | 77 | catch (Exception $e) { |
78 | 78 | $this->protocolException($e, $request); |
@@ -73,8 +73,7 @@ |
||
73 | 73 | $response->setRawResponse($adapter->getRawResponse()); |
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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -60,8 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | if ($this->isError()) { |
62 | 62 | $result = parent::__toString(); |
63 | - } |
|
64 | - else { |
|
63 | + } else { |
|
65 | 64 | $stringArray = array('status=' . $this->getStatus(), 'data=PDF-Content'); |
66 | 65 | $result = implode('|', $stringArray); |
67 | 66 | } |
@@ -104,8 +104,7 @@ |
||
104 | 104 | |
105 | 105 | // Protocol |
106 | 106 | $this->protocol($request, $response); |
107 | - } |
|
108 | - catch (Exception $e) { |
|
107 | + } catch (Exception $e) { |
|
109 | 108 | $this->protocolException($e, $request); |
110 | 109 | throw $e; |
111 | 110 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | public function __toString() |
64 | 64 | { |
65 | - if($this->applyFilters) { |
|
65 | + if ($this->applyFilters) { |
|
66 | 66 | $result = $this->applyFilters->apply($this->toArray()); |
67 | 67 | } else { |
68 | 68 | $protocolFactory = new Payone_Protocol_Factory(); |
@@ -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 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | */ |
63 | 63 | public function __toString() |
64 | 64 | { |
65 | - if($this->applyFilters) { |
|
65 | + if ($this->applyFilters) { |
|
66 | 66 | $result = $this->applyFilters->apply($this->toArray()); |
67 | 67 | } else { |
68 | 68 | $protocolFactory = new Payone_Protocol_Factory(); |
@@ -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 | } |