@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use OCP\IUser; |
| 28 | 28 | use OCP\ILogger; |
| 29 | 29 | use OCP\Files\Folder; |
| 30 | - |
|
| 31 | 30 | use OC\Share20\Exception\ShareNotFound; |
| 32 | 31 | |
| 33 | 32 | /** |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use OCP\IUser; |
| 28 | 28 | use OCP\ILogger; |
| 29 | 29 | use OCP\Files\Folder; |
| 30 | - |
|
| 31 | 30 | use OC\Share20\Exception\ShareNotFound; |
| 32 | 31 | |
| 33 | 32 | /** |
@@ -191,7 +191,7 @@ |
||
| 191 | 191 | * |
| 192 | 192 | * @param ISystemTag $tag |
| 193 | 193 | * |
| 194 | - * @return SystemTagNode |
|
| 194 | + * @return SystemTagMappingNode |
|
| 195 | 195 | */ |
| 196 | 196 | private function makeNode(ISystemTag $tag) { |
| 197 | 197 | return new SystemTagMappingNode( |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use OCP\IUser; |
| 28 | 28 | use OCP\ILogger; |
| 29 | 29 | use OCP\Files\Folder; |
| 30 | - |
|
| 31 | 30 | use OC\Share20\Exception\ShareNotFound; |
| 32 | 31 | |
| 33 | 32 | /** |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | |
| 101 | 101 | /** |
| 102 | 102 | * @param string $data |
| 103 | - * @return int |
|
| 103 | + * @return boolean |
|
| 104 | 104 | */ |
| 105 | 105 | public function stream_write($data) { |
| 106 | 106 | return false; |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | } |
| 207 | 207 | |
| 208 | 208 | /** |
| 209 | - * @param $pos |
|
| 209 | + * @param integer $pos |
|
| 210 | 210 | * @return IFile | null |
| 211 | 211 | */ |
| 212 | 212 | private function getNodeForPosition($pos) { |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | 22 | use OC\Share\MailNotifications; |
| 23 | -use OCP\IConfig; |
|
| 24 | 23 | use OCP\IL10N; |
| 25 | 24 | use OCP\IUser; |
| 26 | 25 | use OCP\Mail\IMailer; |
@@ -777,7 +777,7 @@ |
||
| 777 | 777 | /** |
| 778 | 778 | * check if path points to a files version |
| 779 | 779 | * |
| 780 | - * @param $path |
|
| 780 | + * @param string $path |
|
| 781 | 781 | * @return bool |
| 782 | 782 | */ |
| 783 | 783 | protected function isVersion($path) { |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | * if the size limit for the trash bin is reached, we delete the oldest |
| 656 | 656 | * files in the trash bin until we meet the limit again |
| 657 | 657 | * |
| 658 | - * @param array $files |
|
| 658 | + * @param \OCP\Files\FileInfo[] $files |
|
| 659 | 659 | * @param string $user |
| 660 | 660 | * @param int $availableSpace available disc space |
| 661 | 661 | * @return int size of deleted files |
@@ -683,7 +683,7 @@ discard block |
||
| 683 | 683 | /** |
| 684 | 684 | * delete files older then max storage time |
| 685 | 685 | * |
| 686 | - * @param array $files list of files sorted by mtime |
|
| 686 | + * @param \OCP\Files\FileInfo[] $files list of files sorted by mtime |
|
| 687 | 687 | * @param string $user |
| 688 | 688 | * @return integer[] size of deleted files and number of deleted files |
| 689 | 689 | */ |
@@ -79,6 +79,10 @@ |
||
| 79 | 79 | // TODO: throw exceptions if necessary |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param Controller $controller |
|
| 84 | + * @param string $methodName |
|
| 85 | + */ |
|
| 82 | 86 | private function checkTwoFactor($controller, $methodName) { |
| 83 | 87 | // If two-factor auth is in progress disallow access to any controllers |
| 84 | 88 | // defined within "LoginController". |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | * make preview_icon available as a simple function |
| 184 | 184 | * Returns the path to the preview of the image. |
| 185 | 185 | * @param string $path path of file |
| 186 | - * @return link to the preview |
|
| 186 | + * @return string to the preview |
|
| 187 | 187 | * |
| 188 | 188 | * For further information have a look at OC_Helper::previewIcon |
| 189 | 189 | */ |
@@ -193,6 +193,7 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | /** |
| 195 | 195 | * @param string $path |
| 196 | + * @param string $token |
|
| 196 | 197 | */ |
| 197 | 198 | function publicPreview_icon ( $path, $token ) { |
| 198 | 199 | return OC_Helper::publicPreviewIcon( $path, $token ); |