Completed
Pull Request — master (#76)
by Thibaud
04:14
created
src/PhraseanetSDK/Http/AuthenticatedClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         array $files = array(),
60 60
         array $headers = array()
61 61
     ) {
62
-        $query = array_replace($query, [ 'oauth_token' => $this->token ]);
62
+        $query = array_replace($query, ['oauth_token' => $this->token]);
63 63
 
64 64
         return $this->client->call($method, $path, $query, $postFields, $files, $headers);
65 65
     }
Please login to merge, or discard this patch.
src/PhraseanetSDK/Http/ApiClient.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         array $files = array(),
85 85
         array $headers = array()
86 86
     ) {
87
-        $headers = array_replace($headers, [ 'Accept' => $this->getAcceptHeader() ]);
87
+        $headers = array_replace($headers, ['Accept' => $this->getAcceptHeader()]);
88 88
         $responseBody = $this->client->call($method, $path, $query, $postFields, $files, $headers);
89 89
 
90 90
         $decodedResponse = @json_decode($responseBody);
@@ -104,7 +104,6 @@  discard block
 block discarded – undo
104 104
     private function getAcceptHeader()
105 105
     {
106 106
         return $this->isExtendedModeEnabled() ?
107
-            'application/vnd.phraseanet.record-extended+json' :
108
-            'application/json';
107
+            'application/vnd.phraseanet.record-extended+json' : 'application/json';
109 108
     }
110 109
 }
Please login to merge, or discard this patch.
src/PhraseanetSDK/Exception/BadResponseException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      */
53 53
     public function setResponseBody($body)
54 54
     {
55
-        $this->responseBody = (string)$body;
55
+        $this->responseBody = (string) $body;
56 56
 
57 57
         return $this;
58 58
     }
Please login to merge, or discard this patch.