File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff 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 ('* ' ))
You can’t perform that action at this time.
0 commit comments