Passed
Pull Request — master (#13)
by Matthew
14:09
created
src/Model/ShortURL.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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.