@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | * @param string $path |
84 | 84 | * @param string $newpath |
85 | 85 | * |
86 | - * @return bool |
|
86 | + * @return boolean|null |
|
87 | 87 | */ |
88 | 88 | public function rename($path, $newpath) |
89 | 89 | { |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | * @param string $path |
97 | 97 | * @param string $newpath |
98 | 98 | * |
99 | - * @return bool |
|
99 | + * @return boolean|null |
|
100 | 100 | */ |
101 | 101 | public function copy($path, $newpath) |
102 | 102 | { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * |
109 | 109 | * @param string $path |
110 | 110 | * |
111 | - * @return bool |
|
111 | + * @return boolean|null |
|
112 | 112 | */ |
113 | 113 | public function delete($path) |
114 | 114 | { |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * |
121 | 121 | * @param string $dirname |
122 | 122 | * |
123 | - * @return bool |
|
123 | + * @return boolean|null |
|
124 | 124 | */ |
125 | 125 | public function deleteDir($dirname) |
126 | 126 | { |
@@ -282,6 +282,11 @@ discard block |
||
282 | 282 | return '/' . ltrim(rtrim($path, '/'), '/'); |
283 | 283 | } |
284 | 284 | |
285 | + /** |
|
286 | + * @param string $path |
|
287 | + * @param string $contents |
|
288 | + * @param string $mode |
|
289 | + */ |
|
285 | 290 | protected function upload($path, $contents, $mode) |
286 | 291 | { |
287 | 292 | $location = $this->applyPathPrefix($path); |
@@ -3,9 +3,9 @@ |
||
3 | 3 | namespace Spatie\FlysystemDropbox; |
4 | 4 | |
5 | 5 | |
6 | +use League\Flysystem\AdapterInterface; |
|
6 | 7 | use League\Flysystem\Adapter\AbstractAdapter; |
7 | 8 | use League\Flysystem\Adapter\Polyfill\NotSupportingVisibilityTrait; |
8 | -use League\Flysystem\AdapterInterface; |
|
9 | 9 | use League\Flysystem\Config; |
10 | 10 | |
11 | 11 | class DropboxAdapter extends AbstractAdapter implements AdapterInterface |