@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * Creates a Folder that represents a non-existing path |
| 32 | 32 | * |
| 33 | 33 | * @param string $path path |
| 34 | - * @return string non-existing node class |
|
| 34 | + * @return NonExistingFile non-existing node class |
|
| 35 | 35 | */ |
| 36 | 36 | protected function createNonExistingNode($path) { |
| 37 | 37 | return new NonExistingFile($this->root, $this->view, $path); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | * Creates a Folder that represents a non-existing path |
| 38 | 38 | * |
| 39 | 39 | * @param string $path path |
| 40 | - * @return string non-existing node class |
|
| 40 | + * @return NonExistingFolder non-existing node class |
|
| 41 | 41 | */ |
| 42 | 42 | protected function createNonExistingNode($path) { |
| 43 | 43 | return new NonExistingFolder($this->root, $this->view, $path); |
@@ -33,6 +33,7 @@ |
||
| 33 | 33 | * |
| 34 | 34 | * @returns string |
| 35 | 35 | * @since 12 |
| 36 | + * @return string |
|
| 36 | 37 | */ |
| 37 | 38 | public function getIcon(); |
| 38 | 39 | } |
@@ -139,6 +139,9 @@ |
||
| 139 | 139 | return false; |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $path |
|
| 144 | + */ |
|
| 142 | 145 | public function writeBack($tmpFile, $path) { |
| 143 | 146 | $this->uploadFile($tmpFile, $path); |
| 144 | 147 | unlink($tmpFile); |
@@ -616,6 +616,9 @@ |
||
| 616 | 616 | return $this->container; |
| 617 | 617 | } |
| 618 | 618 | |
| 619 | + /** |
|
| 620 | + * @param string $path |
|
| 621 | + */ |
|
| 619 | 622 | public function writeBack($tmpFile, $path) { |
| 620 | 623 | $fileData = fopen($tmpFile, 'r'); |
| 621 | 624 | $this->getContainer()->uploadObject($path, $fileData); |
@@ -597,7 +597,7 @@ |
||
| 597 | 597 | * publish activity |
| 598 | 598 | * |
| 599 | 599 | * @param string $subject |
| 600 | - * @param array $parameters |
|
| 600 | + * @param string[] $parameters |
|
| 601 | 601 | * @param string $affectedUser |
| 602 | 602 | * @param int $fileId |
| 603 | 603 | * @param string $filePath |
@@ -358,7 +358,7 @@ discard block |
||
| 358 | 358 | * split user and remote from federated cloud id |
| 359 | 359 | * |
| 360 | 360 | * @param string $address federated share address |
| 361 | - * @return array [user, remoteURL] |
|
| 361 | + * @return string[] [user, remoteURL] |
|
| 362 | 362 | * @throws \Exception |
| 363 | 363 | */ |
| 364 | 364 | public function splitUserRemote($address) { |
@@ -633,6 +633,9 @@ discard block |
||
| 633 | 633 | return $result; |
| 634 | 634 | } |
| 635 | 635 | |
| 636 | + /** |
|
| 637 | + * @param string $search |
|
| 638 | + */ |
|
| 636 | 639 | protected function getLookup($search) { |
| 637 | 640 | $isEnabled = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no'); |
| 638 | 641 | $result = []; |
@@ -225,7 +225,7 @@ |
||
| 225 | 225 | /** |
| 226 | 226 | * creates a array with all user data |
| 227 | 227 | * |
| 228 | - * @param $userId |
|
| 228 | + * @param string $userId |
|
| 229 | 229 | * @return array |
| 230 | 230 | * @throws OCSException |
| 231 | 231 | */ |
@@ -185,10 +185,10 @@ discard block |
||
| 185 | 185 | * publish activity if a file/folder was shared by mail |
| 186 | 186 | * |
| 187 | 187 | * @param $subject |
| 188 | - * @param $parameters |
|
| 189 | - * @param $affectedUser |
|
| 188 | + * @param string[] $parameters |
|
| 189 | + * @param string $affectedUser |
|
| 190 | 190 | * @param $fileId |
| 191 | - * @param $filePath |
|
| 191 | + * @param string $filePath |
|
| 192 | 192 | */ |
| 193 | 193 | protected function publishActivity($subject, $parameters, $affectedUser, $fileId, $filePath) { |
| 194 | 194 | $event = $this->activityManager->generateEvent(); |
@@ -240,6 +240,12 @@ discard block |
||
| 240 | 240 | |
| 241 | 241 | } |
| 242 | 242 | |
| 243 | + /** |
|
| 244 | + * @param string $link |
|
| 245 | + * @param string $owner |
|
| 246 | + * @param string $initiator |
|
| 247 | + * @param string $shareWith |
|
| 248 | + */ |
|
| 243 | 249 | protected function sendMailNotification($filename, $link, $owner, $initiator, $shareWith) { |
| 244 | 250 | $ownerUser = $this->userManager->get($owner); |
| 245 | 251 | $initiatorUser = $this->userManager->get($initiator); |
@@ -269,6 +275,7 @@ discard block |
||
| 269 | 275 | * @param $link |
| 270 | 276 | * @param $owner |
| 271 | 277 | * @param $initiator |
| 278 | + * @param string $template |
|
| 272 | 279 | * @return string plain text mail |
| 273 | 280 | * @throws HintException |
| 274 | 281 | */ |
@@ -708,7 +715,7 @@ discard block |
||
| 708 | 715 | /** |
| 709 | 716 | * get database row of a give share |
| 710 | 717 | * |
| 711 | - * @param $id |
|
| 718 | + * @param integer $id |
|
| 712 | 719 | * @return array |
| 713 | 720 | * @throws ShareNotFound |
| 714 | 721 | */ |