Skip to content

Commit 50d11fa

Browse files
Merge pull request #53359 from nextcloud/backport/53323/stable30
[stable30] docs(caldav): improve documentation of CalDavBackend::getCalendarsForUserCount
2 parents 27ef104 + 36f9c55 commit 50d11fa

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

apps/dav/lib/CalDAV/CalDavBackend.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,13 @@ public function __construct(
211211
}
212212

213213
/**
214-
* Return the number of calendars for a principal
214+
* Return the number of calendars owned by the given principal.
215215
*
216-
* By default this excludes the automatically generated birthday calendar
216+
* Calendars shared with the given principal are not counted!
217217
*
218-
* @param $principalUri
219-
* @param bool $excludeBirthday
220-
* @return int
218+
* By default, this excludes the automatically generated birthday calendar.
221219
*/
222-
public function getCalendarsForUserCount($principalUri, $excludeBirthday = true) {
220+
public function getCalendarsForUserCount(string $principalUri, bool $excludeBirthday = true): int {
223221
$principalUri = $this->convertPrincipal($principalUri, true);
224222
$query = $this->db->getQueryBuilder();
225223
$query->select($query->func()->count('*'))

0 commit comments

Comments
 (0)