@@ -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 | */ |
@@ -2,12 +2,12 @@ |
||
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 |
@@ -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 | { |
@@ -1,21 +1,21 @@ |
||
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 |
@@ -816,7 +816,7 @@ discard block |
||
816 | 816 | /** |
817 | 817 | * Upload file in sessions/chunks |
818 | 818 | * |
819 | - * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file |
|
819 | + * @param DropboxFile $dropboxFile DropboxFile object or Path to file |
|
820 | 820 | * @param string $path Path to save the file to, on Dropbox |
821 | 821 | * @param int $fileSize The size of the file |
822 | 822 | * @param int $chunkSize The amount of data to upload in each chunk |
@@ -881,7 +881,7 @@ discard block |
||
881 | 881 | /** |
882 | 882 | * Start an Upload Session |
883 | 883 | * |
884 | - * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file |
|
884 | + * @param string $dropboxFile DropboxFile object or Path to file |
|
885 | 885 | * @param int $chunkSize Size of file chunk to upload |
886 | 886 | * @param boolean $close Closes the session for "appendUploadSession" |
887 | 887 | * |
@@ -934,7 +934,7 @@ discard block |
||
934 | 934 | /** |
935 | 935 | * Append more data to an Upload Session |
936 | 936 | * |
937 | - * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file |
|
937 | + * @param DropboxFile $dropboxFile DropboxFile object or Path to file |
|
938 | 938 | * @param string $sessionId Session ID returned by `startUploadSession` |
939 | 939 | * @param int $offset The amount of data that has been uploaded so far |
940 | 940 | * @param int $chunkSize The amount of data to upload |
@@ -983,7 +983,7 @@ discard block |
||
983 | 983 | /** |
984 | 984 | * Finish an upload session and save the uploaded data to the given file path |
985 | 985 | * |
986 | - * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file |
|
986 | + * @param DropboxFile $dropboxFile DropboxFile object or Path to file |
|
987 | 987 | * @param string $sessionId Session ID returned by `startUploadSession` |
988 | 988 | * @param int $offset The amount of data that has been uploaded so far |
989 | 989 | * @param int $remaining The amount of data that is remaining |
@@ -1031,7 +1031,7 @@ discard block |
||
1031 | 1031 | /** |
1032 | 1032 | * Upload a File to Dropbox in a single request |
1033 | 1033 | * |
1034 | - * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file |
|
1034 | + * @param DropboxFile $dropboxFile DropboxFile object or Path to file |
|
1035 | 1035 | * @param string $path Path to upload the file to |
1036 | 1036 | * @param array $params Additional Params |
1037 | 1037 | * |