@@ -984,7 +984,7 @@ discard block |
||
| 984 | 984 | /** |
| 985 | 985 | * check if path points to a files version |
| 986 | 986 | * |
| 987 | - * @param $path |
|
| 987 | + * @param string $path |
|
| 988 | 988 | * @return bool |
| 989 | 989 | */ |
| 990 | 990 | protected function isVersion($path) { |
@@ -995,7 +995,7 @@ discard block |
||
| 995 | 995 | /** |
| 996 | 996 | * check if the given storage should be encrypted or not |
| 997 | 997 | * |
| 998 | - * @param $path |
|
| 998 | + * @param string $path |
|
| 999 | 999 | * @return bool |
| 1000 | 1000 | */ |
| 1001 | 1001 | protected function shouldEncrypt($path) { |
@@ -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; |
@@ -191,6 +191,9 @@ discard block |
||
| 191 | 191 | return false; |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | + /** |
|
| 195 | + * @param string $path |
|
| 196 | + */ |
|
| 194 | 197 | private function batchDelete ($path = null) { |
| 195 | 198 | $params = array( |
| 196 | 199 | 'Bucket' => $this->bucket |
@@ -516,6 +519,9 @@ discard block |
||
| 516 | 519 | return $this->id; |
| 517 | 520 | } |
| 518 | 521 | |
| 522 | + /** |
|
| 523 | + * @param string $path |
|
| 524 | + */ |
|
| 519 | 525 | public function writeBack($tmpFile, $path) { |
| 520 | 526 | try { |
| 521 | 527 | $this->getConnection()->putObject(array( |
@@ -76,6 +76,9 @@ discard block |
||
| 76 | 76 | return false; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | + /** |
|
| 80 | + * @param string $path |
|
| 81 | + */ |
|
| 79 | 82 | private function setMetaData($path, $metaData) { |
| 80 | 83 | $this->metaData[ltrim($path, '/')] = $metaData; |
| 81 | 84 | } |
@@ -316,6 +319,9 @@ discard block |
||
| 316 | 319 | return false; |
| 317 | 320 | } |
| 318 | 321 | |
| 322 | + /** |
|
| 323 | + * @param string $path |
|
| 324 | + */ |
|
| 319 | 325 | public function writeBack($tmpFile, $path) { |
| 320 | 326 | $handle = fopen($tmpFile, 'r'); |
| 321 | 327 | try { |
@@ -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) { |
@@ -370,6 +370,7 @@ |
||
| 370 | 370 | |
| 371 | 371 | /** |
| 372 | 372 | * write back temporary files |
| 373 | + * @param string $path |
|
| 373 | 374 | */ |
| 374 | 375 | function writeBack($tmpFile, $path) { |
| 375 | 376 | $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; |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | |
| 103 | 103 | /** |
| 104 | 104 | * @param \Icewind\SMB\Change $change |
| 105 | - * @return IChange|null |
|
| 105 | + * @return null|Change |
|
| 106 | 106 | */ |
| 107 | 107 | private function mapChange(\Icewind\SMB\Change $change) { |
| 108 | 108 | $path = $this->relativePath($change->getPath()); |