From 6f8147b18fadd749b6060ab540292c9ac6f85d61 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Fri, 14 Aug 2020 15:10:48 +0200 Subject: Fix some MissingDocblockType or InvalidDocblock warnings. Signed-off-by: Daniel Kesselberg --- apps/dav/lib/CalDAV/Schedule/Plugin.php | 2 +- apps/dav/lib/CardDAV/AddressBookImpl.php | 1 - apps/dav/lib/CardDAV/PhotoCache.php | 1 + apps/dav/lib/Connector/Sabre/FilesPlugin.php | 2 -- 4 files changed, 2 insertions(+), 4 deletions(-) (limited to 'apps/dav') diff --git a/apps/dav/lib/CalDAV/Schedule/Plugin.php b/apps/dav/lib/CalDAV/Schedule/Plugin.php index c2e46f92cfd..fd2a2ca6d28 100644 --- a/apps/dav/lib/CalDAV/Schedule/Plugin.php +++ b/apps/dav/lib/CalDAV/Schedule/Plugin.php @@ -325,7 +325,7 @@ EOF; * Returns a list of addresses that are associated with a principal. * * @param string $principal - * @return string? + * @return string|null */ protected function getCalendarUserTypeForPrincipal($principal):?string { $calendarUserType = '{' . self::NS_CALDAV . '}calendar-user-type'; diff --git a/apps/dav/lib/CardDAV/AddressBookImpl.php b/apps/dav/lib/CardDAV/AddressBookImpl.php index 02dc7c5d015..1c35e2c400c 100644 --- a/apps/dav/lib/CardDAV/AddressBookImpl.php +++ b/apps/dav/lib/CardDAV/AddressBookImpl.php @@ -82,7 +82,6 @@ class AddressBookImpl implements IAddressBook { /** * @return string defining the unique uri * @since 16.0.0 - * @return string */ public function getUri(): string { return $this->addressBookInfo['uri']; diff --git a/apps/dav/lib/CardDAV/PhotoCache.php b/apps/dav/lib/CardDAV/PhotoCache.php index e28a5ca2f08..ca3853c76e6 100644 --- a/apps/dav/lib/CardDAV/PhotoCache.php +++ b/apps/dav/lib/CardDAV/PhotoCache.php @@ -36,6 +36,7 @@ use OCP\Files\SimpleFS\ISimpleFile; use OCP\Files\SimpleFS\ISimpleFolder; use OCP\ILogger; use Sabre\CardDAV\Card; +use Sabre\VObject\Parameter; use Sabre\VObject\Property\Binary; use Sabre\VObject\Reader; diff --git a/apps/dav/lib/Connector/Sabre/FilesPlugin.php b/apps/dav/lib/Connector/Sabre/FilesPlugin.php index 076e5b6483b..c831ab86dc7 100644 --- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php @@ -276,7 +276,6 @@ class FilesPlugin extends ServerPlugin { if ($node instanceof \OCA\DAV\Connector\Sabre\File) { //Add OC-Checksum header - /** @var $node File */ $checksum = $node->getChecksum(); if ($checksum !== null && $checksum !== '') { $response->addHeader('OC-Checksum', $checksum); @@ -383,7 +382,6 @@ class FilesPlugin extends ServerPlugin { if ($node instanceof \OCA\DAV\Connector\Sabre\File) { $propFind->handle(self::DOWNLOADURL_PROPERTYNAME, function () use ($node) { - /** @var $node \OCA\DAV\Connector\Sabre\File */ try { $directDownloadUrl = $node->getDirectDownload(); if (isset($directDownloadUrl['url'])) { -- cgit v1.2.3