@@ -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 | * |
@@ -1147,7 +1147,7 @@ |
||
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 |