@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -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 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | { |
| 54 | 54 | $result = array(); |
| 55 | 55 | foreach ($this as $key => $data) { |
| 56 | - if (!is_array($data) and ! is_object($data)) { |
|
| 56 | + if (!is_array($data) and !is_object($data)) { |
|
| 57 | 57 | $result[$key] = $data; |
| 58 | 58 | } else if ($data instanceof Payone_Api_Response_Parameter_Interface) { |
| 59 | 59 | /** |