Test Setup Failed
Push — master ( 9faf66...5676e8 )
by Kunal
02:49 queued 25s
created
src/Dropbox/Dropbox.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -829,7 +829,7 @@  discard block
 block discarded – undo
829 829
     /**
830 830
      * Upload a File to Dropbox in a single request
831 831
      *
832
-     * @param  string|DropboxFile $dropboxFile DropboxFile object or Path to file
832
+     * @param  DropboxFile $dropboxFile DropboxFile object or Path to file
833 833
      * @param  string             $path        Path to upload the file to
834 834
      * @param  array              $params      Additional Params
835 835
      *
@@ -857,7 +857,7 @@  discard block
 block discarded – undo
857 857
     /**
858 858
      * Start an Upload Session
859 859
      *
860
-     * @param  string|DropboxFile $dropboxFile DropboxFile object or Path to file
860
+     * @param  string $dropboxFile DropboxFile object or Path to file
861 861
      * @param  int                $chunkSize   Size of file chunk to upload
862 862
      * @param  boolean            $close       Closes the session for "appendUploadSession"
863 863
      *
@@ -895,7 +895,7 @@  discard block
 block discarded – undo
895 895
     /**
896 896
      * Finish an upload session and save the uploaded data to the given file path
897 897
      *
898
-     * @param  string|DropboxFile $dropboxFile DropboxFile object or Path to file
898
+     * @param  DropboxFile $dropboxFile DropboxFile object or Path to file
899 899
      * @param  string             $sessionId   Session ID returned by `startUploadSession`
900 900
      * @param  int                $offset      The amount of data that has been uploaded so far
901 901
      * @param  int                $remaining   The amount of data that is remaining
@@ -943,7 +943,7 @@  discard block
 block discarded – undo
943 943
     /**
944 944
      * Append more data to an Upload Session
945 945
      *
946
-     * @param  string|DropboxFile $dropboxFile DropboxFile object or Path to file
946
+     * @param  DropboxFile $dropboxFile DropboxFile object or Path to file
947 947
      * @param  string             $sessionId   Session ID returned by `startUploadSession`
948 948
      * @param  int                $offset      The amount of data that has been uploaded so far
949 949
      * @param  int                $chunkSize   The amount of data to upload
@@ -992,7 +992,7 @@  discard block
 block discarded – undo
992 992
     /**
993 993
      * Upload file in sessions/chunks
994 994
      *
995
-     * @param  string|DropboxFile $dropboxFile DropboxFile object or Path to file
995
+     * @param  DropboxFile $dropboxFile DropboxFile object or Path to file
996 996
      * @param  string             $path        Path to save the file to, on Dropbox
997 997
      * @param  int                $fileSize    The size of the file
998 998
      * @param  int                $chunkSize   The amount of data to upload in each chunk
Please login to merge, or discard this patch.
Unused Use Statements   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Kunnu\Dropbox;
3 3
 
4
-use Kunnu\Dropbox\Models\File;
4
+use Kunnu\Dropbox\Authentication\DropboxAuthHelper;
5
+use Kunnu\Dropbox\Authentication\OAuth2Client;
6
+use Kunnu\Dropbox\Exceptions\DropboxClientException;
7
+use Kunnu\Dropbox\Http\Clients\DropboxHttpClientFactory;
5 8
 use Kunnu\Dropbox\Models\Account;
6
-use Kunnu\Dropbox\Models\Thumbnail;
7 9
 use Kunnu\Dropbox\Models\AccountList;
8
-use Kunnu\Dropbox\Models\ModelFactory;
9
-use Kunnu\Dropbox\Models\FileMetadata;
10 10
 use Kunnu\Dropbox\Models\CopyReference;
11
+use Kunnu\Dropbox\Models\File;
12
+use Kunnu\Dropbox\Models\FileMetadata;
11 13
 use Kunnu\Dropbox\Models\FolderMetadata;
12 14
 use Kunnu\Dropbox\Models\ModelCollection;
13
-use Kunnu\Dropbox\Authentication\OAuth2Client;
14
-use Kunnu\Dropbox\Store\PersistentDataStoreFactory;
15
-use Kunnu\Dropbox\Authentication\DropboxAuthHelper;
16
-use Kunnu\Dropbox\Exceptions\DropboxClientException;
15
+use Kunnu\Dropbox\Models\ModelFactory;
16
+use Kunnu\Dropbox\Models\Thumbnail;
17 17
 use Kunnu\Dropbox\Security\RandomStringGeneratorFactory;
18
-use Kunnu\Dropbox\Http\Clients\DropboxHttpClientFactory;
18
+use Kunnu\Dropbox\Store\PersistentDataStoreFactory;
19 19
 
20 20
 /**
21 21
  * Dropbox
Please login to merge, or discard this patch.
src/Dropbox/Http/Clients/DropboxGuzzleHttpClient.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
     /**
85 85
      * Get the Response Body
86 86
      *
87
-     * @param string|\Psr\Http\Message\ResponseInterface $response Response object
87
+     * @param ResponseInterface $response Response object
88 88
      *
89 89
      * @return string
90 90
      */
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 namespace Kunnu\Dropbox\Http\Clients;
3 3
 
4 4
 use GuzzleHttp\Client;
5
-use GuzzleHttp\Psr7\Request;
6
-use Psr\Http\Message\StreamInterface;
7
-use Psr\Http\Message\ResponseInterface;
8 5
 use GuzzleHttp\Exception\RequestException;
9
-use Kunnu\Dropbox\Http\DropboxRawResponse;
6
+use GuzzleHttp\Psr7\Request;
10 7
 use Kunnu\Dropbox\Exceptions\DropboxClientException;
8
+use Kunnu\Dropbox\Http\DropboxRawResponse;
9
+use Psr\Http\Message\ResponseInterface;
10
+use Psr\Http\Message\StreamInterface;
11 11
 
12 12
 /**
13 13
  * DropboxGuzzleHttpClient
Please login to merge, or discard this patch.
src/Dropbox/Models/SearchResult.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     /**
50 50
      * Indicates what type of match was found for the result
51 51
      *
52
-     * @return bool
52
+     * @return string
53 53
      */
54 54
     public function getMatchType()
55 55
     {
Please login to merge, or discard this patch.
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/Authentication/OAuth2Client.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
             'state' => $state,
116 116
             ], $params);
117 117
 
118
-        if(!is_null($redirectUri)) {
118
+        if (!is_null($redirectUri)) {
119 119
             $params['redirect_uri'] = $redirectUri;
120 120
         }
121 121
 
Please login to merge, or discard this patch.
src/Dropbox/DropboxResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
         $body = $this->getBody();
158 158
 
159 159
         if (isset($this->headers['Content-Type']) && in_array('application/json', $this->headers['Content-Type'])) {
160
-            $this->decodedBody = json_decode((string)$body, true);
160
+            $this->decodedBody = json_decode((string) $body, true);
161 161
         } else {
162 162
             $this->decodedBody = $this->body;
163 163
         }
Please login to merge, or discard this patch.
src/Dropbox/DropboxRequest.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -112,10 +112,10 @@  discard block
 block discarded – undo
112 112
     }
113 113
 
114 114
      /**
115
-     * Get the Request Params
116
-     *
117
-     * @return array
118
-     */
115
+      * Get the Request Params
116
+      *
117
+      * @return array
118
+      */
119 119
     public function getParams()
120 120
     {
121 121
         return $this->params;
@@ -196,12 +196,12 @@  discard block
 block discarded – undo
196 196
     }
197 197
 
198 198
      /**
199
-     * Set the Request Params
200
-     *
201
-     * @param array
202
-     *
203
-     * @return \Kunnu\Dropbox\DropboxRequest
204
-     */
199
+      * Set the Request Params
200
+      *
201
+      * @param array
202
+      *
203
+      * @return \Kunnu\Dropbox\DropboxRequest
204
+      */
205 205
      public function setParams(array $params = [])
206 206
      {
207 207
          //Process Params
Please login to merge, or discard this patch.