| @@ -829,7 +829,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | 
| @@ -84,7 +84,7 @@ | ||
| 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 | */ | 
| @@ -49,7 +49,7 @@ | ||
| 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 |      { | 
| @@ -93,7 +93,7 @@ | ||
| 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 | /** | 
| @@ -115,7 +115,7 @@ | ||
| 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 | |
| @@ -157,7 +157,7 @@ | ||
| 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 | } | 
| @@ -112,10 +112,10 @@ discard block | ||
| 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 | ||
| 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 |