@@ -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 | |
@@ -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 | } |