Skip to content

Commit d408898

Browse files
st3inyAndyScherzinger
authored andcommitted
docs(caldav): improve documentation of CalDavBackend::getCalendarsForUserCount
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
1 parent 8729a42 commit d408898

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
@@ -216,15 +216,13 @@ public function __construct(
216216
}
217217

218218
/**
219-
* Return the number of calendars for a principal
219+
* Return the number of calendars owned by the given principal.
220220
*
221-
* By default this excludes the automatically generated birthday calendar
221+
* Calendars shared with the given principal are not counted!
222222
*
223-
* @param $principalUri
224-
* @param bool $excludeBirthday
225-
* @return int
223+
* By default, this excludes the automatically generated birthday calendar.
226224
*/
227-
public function getCalendarsForUserCount($principalUri, $excludeBirthday = true) {
225+
public function getCalendarsForUserCount(string $principalUri, bool $excludeBirthday = true): int {
228226
$principalUri = $this->convertPrincipal($principalUri, true);
229227
$query = $this->db->getQueryBuilder();
230228
$query->select($query->func()->count('*'))

0 commit comments

Comments
 (0)