Completed
Pull Request — master (#82)
by
unknown
06:37
created
src/PhraseanetSDK/Repository/Entry.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/PhraseanetSDK/Http/GuzzleAdapter.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -188,11 +188,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/PhraseanetSDK/AbstractRepository.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
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:
Please login to merge, or discard this patch.