Completed
Pull Request — master (#208)
by
unknown
06:08
created
src/Dropbox/DropboxClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
      */
94 94
     protected function buildAuthHeader($accessToken = "")
95 95
     {
96
-        return ['Authorization' => 'Bearer '. $accessToken];
96
+        return ['Authorization' => 'Bearer ' . $accessToken];
97 97
     }
98 98
 
99 99
     /**
Please login to merge, or discard this patch.
src/Dropbox/Dropbox.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1147,7 +1147,7 @@
 block discarded – undo
1147 1147
 
1148 1148
             //Since the metadata is returned as a json string
1149 1149
             //it needs to be decoded into an associative array
1150
-            $metadata = json_decode((string)$data, true);
1150
+            $metadata = json_decode((string) $data, true);
1151 1151
         }
1152 1152
 
1153 1153
         //Return the metadata
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
      *
238 238
      * @return \Kunnu\Dropbox\DropboxResponse
239 239
      * @throws \Kunnu\Dropbox\Exceptions\DropboxClientException
240
-    */
240
+     */
241 241
     public function postToAPI($endpoint, array $params = [], $accessToken = null)
242 242
     {
243 243
         return $this->sendRequest("POST", $endpoint, 'api', $params, $accessToken);
Please login to merge, or discard this patch.
src/Dropbox/Http/Clients/DropboxGuzzleHttpClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * @param int $namespaceId The namespace id
44 44
      */
45
-    public function setNamespace( $namespaceId ){
45
+    public function setNamespace($namespaceId) {
46 46
         $this->namespaceId = $namespaceId;
47 47
     }
48 48
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         } catch (RequestException $e) {
87 87
             $rawResponse = $e->getResponse();
88 88
 
89
-            if (! $rawResponse instanceof ResponseInterface) {
89
+            if (!$rawResponse instanceof ResponseInterface) {
90 90
                 throw new DropboxClientException($e->getMessage(), $e->getCode());
91 91
             }
92 92
         }
Please login to merge, or discard this patch.