@@ -576,7 +576,7 @@ discard block |
||
576 | 576 | * Share a path |
577 | 577 | * |
578 | 578 | * @param \OCP\Share\IShare $share |
579 | - * @return Share The share object |
|
579 | + * @return IShare The share object |
|
580 | 580 | * @throws \Exception |
581 | 581 | * |
582 | 582 | * TODO: handle link share permissions or check them |
@@ -1169,7 +1169,7 @@ discard block |
||
1169 | 1169 | * Get the share by token possible with password |
1170 | 1170 | * |
1171 | 1171 | * @param string $token |
1172 | - * @return Share |
|
1172 | + * @return IShare |
|
1173 | 1173 | * |
1174 | 1174 | * @throws ShareNotFound |
1175 | 1175 | */ |
@@ -1231,6 +1231,9 @@ discard block |
||
1231 | 1231 | return $share; |
1232 | 1232 | } |
1233 | 1233 | |
1234 | + /** |
|
1235 | + * @param IShare $share |
|
1236 | + */ |
|
1234 | 1237 | protected function checkExpireDate($share) { |
1235 | 1238 | if ($share->getExpirationDate() !== null && |
1236 | 1239 | $share->getExpirationDate() <= new \DateTime()) { |