diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-08-14 15:10:48 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-08-14 15:10:48 +0200 |
commit | 6f8147b18fadd749b6060ab540292c9ac6f85d61 (patch) | |
tree | dd05f489acc4d859078473a6b60d34f305fc68c4 /apps/dav | |
parent | b13aa660c91873437afec36ef6466ef609b7959c (diff) | |
download | nextcloud-server-6f8147b18fadd749b6060ab540292c9ac6f85d61.tar.gz nextcloud-server-6f8147b18fadd749b6060ab540292c9ac6f85d61.zip |
Fix some MissingDocblockType or InvalidDocblock warnings.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/CalDAV/Schedule/Plugin.php | 2 | ||||
-rw-r--r-- | apps/dav/lib/CardDAV/AddressBookImpl.php | 1 | ||||
-rw-r--r-- | apps/dav/lib/CardDAV/PhotoCache.php | 1 | ||||
-rw-r--r-- | apps/dav/lib/Connector/Sabre/FilesPlugin.php | 2 |
4 files changed, 2 insertions, 4 deletions
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'])) { |