diff options
author | Vincent Petry <vincent@nextcloud.com> | 2022-06-13 12:48:35 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-07-28 16:53:24 +0200 |
commit | 2ee659e54787c938e57787261442ad4037270322 (patch) | |
tree | ddc2a94bb966c5790bf14eb31ecc1d73d20fc951 /lib | |
parent | 2fb7a1feebb6b8a2c524c75e688cec00d4e3d50e (diff) | |
download | nextcloud-server-2ee659e54787c938e57787261442ad4037270322.tar.gz nextcloud-server-2ee659e54787c938e57787261442ad4037270322.zip |
Fix view-only code after code review comments
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Share20/Share.php | 2 | ||||
-rw-r--r-- | lib/public/Share/IShare.php | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php index 9ba5db5252e..c2d45503696 100644 --- a/lib/private/Share20/Share.php +++ b/lib/private/Share20/Share.php @@ -338,7 +338,7 @@ class Share implements IShare { /** * @inheritdoc */ - public function newAttributes() { + public function newAttributes(): IAttributes { return new ShareAttributes(); } diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php index f86e1ec542d..5a825552e26 100644 --- a/lib/public/Share/IShare.php +++ b/lib/public/Share/IShare.php @@ -36,7 +36,9 @@ use OCP\Files\NotFoundException; use OCP\Share\Exceptions\IllegalIDChangeException; /** - * Interface IShare + * This interface allows to represent a share object. + * + * This interface must not be implemented in your application. * * @since 9.0.0 */ @@ -320,7 +322,7 @@ interface IShare { * @since 25.0.0 * @return IAttributes */ - public function newAttributes(); + public function newAttributes(): IAttributes; /** * Set share attributes |