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 @@ -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 ('* ' ))
You can’t perform that action at this time.
0 commit comments