|
@@ -202,7 +202,7 @@ discard block |
|
|
block discarded – undo |
|
202
|
202
|
|
|
203
|
203
|
// if cURL error occurs. |
|
204
|
204
|
if ($api->isCurlError()) { |
|
205
|
|
- throw new \Exception($api->getCurlErrno().': '.$api->getCurlError()); |
|
|
205
|
+ throw new \Exception($api->getCurlErrno() . ': ' . $api->getCurlError()); |
|
206
|
206
|
|
|
207
|
207
|
} else { |
|
208
|
208
|
// if Bitly response contains error message. |
|
@@ -213,7 +213,7 @@ discard block |
|
|
block discarded – undo |
|
213
|
213
|
|
|
214
|
214
|
// if Bitly response is 200 or 201 |
|
215
|
215
|
if ($result->isSuccess()) { |
|
216
|
|
- $this->ShortURL = $result->getResponseArray()['link']; |
|
|
216
|
+ $this->ShortURL = $result->getResponseArray()[ 'link' ]; |
|
217
|
217
|
|
|
218
|
218
|
} else { |
|
219
|
219
|
throw new \Exception($result->getResponse()); |
Please login to merge, or discard this patch.