@@ -25,7 +25,6 @@ |
||
25 | 25 | namespace OCA\DAV\AppInfo; |
26 | 26 | |
27 | 27 | use OCA\DAV\CalDAV\Activity\Backend; |
28 | -use OCA\DAV\CalDAV\Activity\Extension; |
|
29 | 28 | use OCA\DAV\CalDAV\Activity\Provider\Event; |
30 | 29 | use OCA\DAV\CalDAV\BirthdayService; |
31 | 30 | use OCA\DAV\Capabilities; |
@@ -30,7 +30,6 @@ |
||
30 | 30 | use OCP\AppFramework\Http\Response; |
31 | 31 | use OCP\AppFramework\OCS\OCSException; |
32 | 32 | use OCP\AppFramework\OCS\OCSForbiddenException; |
33 | -use OCP\AppFramework\OCS\OCSNotFoundException; |
|
34 | 33 | use OCP\AppFramework\OCSController; |
35 | 34 | use OCP\IRequest; |
36 | 35 | use OCP\AppFramework\Middleware; |
@@ -37,7 +37,6 @@ |
||
37 | 37 | use Icewind\SMB\Exception\ForbiddenException; |
38 | 38 | use Icewind\SMB\Exception\NotFoundException; |
39 | 39 | use Icewind\SMB\INotifyHandler; |
40 | -use Icewind\SMB\IShare; |
|
41 | 40 | use Icewind\SMB\NativeServer; |
42 | 41 | use Icewind\SMB\Server; |
43 | 42 | use Icewind\Streams\CallbackWrapper; |
@@ -144,6 +144,9 @@ |
||
144 | 144 | return true; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $path |
|
149 | + */ |
|
147 | 150 | public function url_stat($path) { |
148 | 151 | if (isset(self::$data[$path])) { |
149 | 152 | $size = strlen(self::$data[$path]); |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | * |
217 | 217 | * @param \Google_Service_Drive_DriveFile |
218 | 218 | * |
219 | - * @return true if the file is a Google Doc file, false otherwise |
|
219 | + * @return boolean if the file is a Google Doc file, false otherwise |
|
220 | 220 | */ |
221 | 221 | private function isGoogleDocFile($file) { |
222 | 222 | return $this->getGoogleDocExtension($file->getMimeType()) !== ''; |
@@ -505,6 +505,9 @@ discard block |
||
505 | 505 | } |
506 | 506 | } |
507 | 507 | |
508 | + /** |
|
509 | + * @param string $path |
|
510 | + */ |
|
508 | 511 | public function writeBack($tmpFile, $path) { |
509 | 512 | $parentFolder = $this->getDriveFile(dirname($path)); |
510 | 513 | if ($parentFolder) { |
@@ -144,6 +144,9 @@ |
||
144 | 144 | return true; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $path |
|
149 | + */ |
|
147 | 150 | public function url_stat($path) { |
148 | 151 | if (isset(self::$data[$path])) { |
149 | 152 | $size = strlen(self::$data[$path]); |
@@ -212,6 +212,7 @@ |
||
212 | 212 | |
213 | 213 | /** |
214 | 214 | * write back temporary files |
215 | + * @param string $path |
|
215 | 216 | */ |
216 | 217 | function writeBack($tmpFile, $path) { |
217 | 218 | $this->addFile($path, $tmpFile); |
@@ -162,6 +162,9 @@ discard block |
||
162 | 162 | return true; |
163 | 163 | } |
164 | 164 | |
165 | + /** |
|
166 | + * @param string $path |
|
167 | + */ |
|
165 | 168 | private function rmObjects($path) { |
166 | 169 | $children = $this->getCache()->getFolderContents($path); |
167 | 170 | foreach ($children as $child) { |
@@ -364,6 +367,9 @@ discard block |
||
364 | 367 | return true; |
365 | 368 | } |
366 | 369 | |
370 | + /** |
|
371 | + * @param string $path |
|
372 | + */ |
|
367 | 373 | public function writeBack($tmpFile, $path) { |
368 | 374 | $stat = $this->stat($path); |
369 | 375 | if (empty($stat)) { |
@@ -38,7 +38,6 @@ |
||
38 | 38 | use GuzzleHttp\Message\ResponseInterface; |
39 | 39 | use Icewind\Streams\CallbackWrapper; |
40 | 40 | use OC\Files\Filesystem; |
41 | -use OC\Files\Stream\Close; |
|
42 | 41 | use Icewind\Streams\IteratorDirectory; |
43 | 42 | use OC\MemCache\ArrayCache; |
44 | 43 | use OCP\AppFramework\Http; |