| @@ -829,7 +829,7 @@ discard block | ||
| 829 | 829 | /** | 
| 830 | 830 | * Upload file in sessions/chunks | 
| 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 save the file to, on Dropbox | 
| 834 | 834 | * @param int $fileSize The size of the file | 
| 835 | 835 | * @param int $chunkSize The amount of data to upload in each chunk | 
| @@ -894,7 +894,7 @@ discard block | ||
| 894 | 894 | /** | 
| 895 | 895 | * Start an Upload Session | 
| 896 | 896 | * | 
| 897 | - * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file | |
| 897 | + * @param string $dropboxFile DropboxFile object or Path to file | |
| 898 | 898 | * @param int $chunkSize Size of file chunk to upload | 
| 899 | 899 | * @param boolean $close Closes the session for "appendUploadSession" | 
| 900 | 900 | * | 
| @@ -947,7 +947,7 @@ discard block | ||
| 947 | 947 | /** | 
| 948 | 948 | * Append more data to an Upload Session | 
| 949 | 949 | * | 
| 950 | - * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file | |
| 950 | + * @param DropboxFile $dropboxFile DropboxFile object or Path to file | |
| 951 | 951 | * @param string $sessionId Session ID returned by `startUploadSession` | 
| 952 | 952 | * @param int $offset The amount of data that has been uploaded so far | 
| 953 | 953 | * @param int $chunkSize The amount of data to upload | 
| @@ -996,7 +996,7 @@ discard block | ||
| 996 | 996 | /** | 
| 997 | 997 | * Finish an upload session and save the uploaded data to the given file path | 
| 998 | 998 | * | 
| 999 | - * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file | |
| 999 | + * @param DropboxFile $dropboxFile DropboxFile object or Path to file | |
| 1000 | 1000 | * @param string $sessionId Session ID returned by `startUploadSession` | 
| 1001 | 1001 | * @param int $offset The amount of data that has been uploaded so far | 
| 1002 | 1002 | * @param int $remaining The amount of data that is remaining | 
| @@ -1044,7 +1044,7 @@ discard block | ||
| 1044 | 1044 | /** | 
| 1045 | 1045 | * Upload a File to Dropbox in a single request | 
| 1046 | 1046 | * | 
| 1047 | - * @param string|DropboxFile $dropboxFile DropboxFile object or Path to file | |
| 1047 | + * @param DropboxFile $dropboxFile DropboxFile object or Path to file | |
| 1048 | 1048 | * @param string $path Path to upload the file to | 
| 1049 | 1049 | * @param array $params Additional Params | 
| 1050 | 1050 | * | 
| @@ -1282,7 +1282,7 @@ discard block | ||
| 1282 | 1282 | * | 
| 1283 | 1283 | * @link https://www.dropbox.com/developers/documentation/http/documentation#file_requests_get | 
| 1284 | 1284 | * | 
| 1285 | - * @return \Dropbox\Models\FileRequest | |
| 1285 | + * @return Models\ModelInterface | |
| 1286 | 1286 | */ | 
| 1287 | 1287 | public function getFileRequest($id) | 
| 1288 | 1288 |      { | 
| @@ -1301,7 +1301,7 @@ discard block | ||
| 1301 | 1301 | * | 
| 1302 | 1302 | * @link https://www.dropbox.com/developers/documentation/http/documentation#file_requests_list | 
| 1303 | 1303 | * | 
| 1304 | - * @return \Dropbox\Models\FileRequestCollection | |
| 1304 | + * @return Models\ModelInterface | |
| 1305 | 1305 | */ | 
| 1306 | 1306 | public function listFileRequests() | 
| 1307 | 1307 |      { | 
| @@ -1324,7 +1324,7 @@ discard block | ||
| 1324 | 1324 | * | 
| 1325 | 1325 | * @link https://www.dropbox.com/developers/documentation/http/documentation#file_requests_create | 
| 1326 | 1326 | * | 
| 1327 | - * @return \Dropbox\Models\FileRequest | |
| 1327 | + * @return Models\ModelInterface | |
| 1328 | 1328 | */ | 
| 1329 | 1329 | public function createFileRequest($title, $destination, $deadline = '', $allow_late_uploads = '', $open = true) | 
| 1330 | 1330 |      { | 
| @@ -1372,7 +1372,7 @@ discard block | ||
| 1372 | 1372 | * | 
| 1373 | 1373 | * @link https://www.dropbox.com/developers/documentation/http/documentation#file_requests_update | 
| 1374 | 1374 | * | 
| 1375 | - * @return \Dropbox\Models\FileRequest | |
| 1375 | + * @return Models\ModelInterface | |
| 1376 | 1376 | */ | 
| 1377 | 1377 | public function updateFileRequest($id, $title = null, $destination = null, $deadline = null, $allow_late_uploads = '', $open = null) | 
| 1378 | 1378 |      { | 
| @@ -2,21 +2,21 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace Kunnu\Dropbox; | 
| 4 | 4 | |
| 5 | -use Kunnu\Dropbox\Models\File; | |
| 5 | +use Kunnu\Dropbox\Authentication\DropboxAuthHelper; | |
| 6 | +use Kunnu\Dropbox\Authentication\OAuth2Client; | |
| 7 | +use Kunnu\Dropbox\Exceptions\DropboxClientException; | |
| 8 | +use Kunnu\Dropbox\Http\Clients\DropboxHttpClientFactory; | |
| 6 | 9 | use Kunnu\Dropbox\Models\Account; | 
| 7 | -use Kunnu\Dropbox\Models\Thumbnail; | |
| 8 | 10 | use Kunnu\Dropbox\Models\AccountList; | 
| 9 | -use Kunnu\Dropbox\Models\ModelFactory; | |
| 10 | -use Kunnu\Dropbox\Models\FileMetadata; | |
| 11 | 11 | use Kunnu\Dropbox\Models\CopyReference; | 
| 12 | +use Kunnu\Dropbox\Models\File; | |
| 13 | +use Kunnu\Dropbox\Models\FileMetadata; | |
| 12 | 14 | use Kunnu\Dropbox\Models\FolderMetadata; | 
| 13 | 15 | use Kunnu\Dropbox\Models\ModelCollection; | 
| 14 | -use Kunnu\Dropbox\Authentication\OAuth2Client; | |
| 15 | -use Kunnu\Dropbox\Store\PersistentDataStoreFactory; | |
| 16 | -use Kunnu\Dropbox\Authentication\DropboxAuthHelper; | |
| 17 | -use Kunnu\Dropbox\Exceptions\DropboxClientException; | |
| 16 | +use Kunnu\Dropbox\Models\ModelFactory; | |
| 17 | +use Kunnu\Dropbox\Models\Thumbnail; | |
| 18 | 18 | use Kunnu\Dropbox\Security\RandomStringGeneratorFactory; | 
| 19 | -use Kunnu\Dropbox\Http\Clients\DropboxHttpClientFactory; | |
| 19 | +use Kunnu\Dropbox\Store\PersistentDataStoreFactory; | |
| 20 | 20 | |
| 21 | 21 | /** | 
| 22 | 22 | * Dropbox | 
| @@ -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 |      { | 
| @@ -134,7 +134,6 @@ | ||
| 134 | 134 | } | 
| 135 | 135 | |
| 136 | 136 | /** | 
| 137 | - * @param string $tag | |
| 138 | 137 | * | 
| 139 | 138 | * @return bool | 
| 140 | 139 | */ |