@@ -22,7 +22,7 @@ |
||
22 | 22 | * Retrieve the entry identified by its id |
23 | 23 | * |
24 | 24 | * @param integer $id The entry id |
25 | - * @return \PhraseanetSDK\Entity\Feed |
|
25 | + * @return FeedEntry |
|
26 | 26 | * @throws RuntimeException |
27 | 27 | */ |
28 | 28 | public function findById($id) |
@@ -188,11 +188,9 @@ |
||
188 | 188 | |
189 | 189 | // $this->addRequestParameters($request, $query, $postFields, $files); |
190 | 190 | // $response = $request->send(); |
191 | - } |
|
192 | - catch (GuzzleBadResponse $e) { |
|
191 | + } catch (GuzzleBadResponse $e) { |
|
193 | 192 | throw BadResponseException::fromGuzzleResponse($e); |
194 | - } |
|
195 | - catch (GuzzleException $e) { |
|
193 | + } catch (GuzzleException $e) { |
|
196 | 194 | throw new RuntimeException($e->getMessage(), $e->getCode(), $e); |
197 | 195 | } |
198 | 196 |
@@ -67,8 +67,7 @@ |
||
67 | 67 | { |
68 | 68 | try { |
69 | 69 | $response = $this->getAdapter()->call($method, $path, $query, $postFields, array(), $headers); |
70 | - } |
|
71 | - catch (BadResponseException $e) { |
|
70 | + } catch (BadResponseException $e) { |
|
72 | 71 | $statusCode = $e->getStatusCode(); |
73 | 72 | switch ($statusCode) { |
74 | 73 | case 404: |