File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
apps/updatenotification/lib/Controller Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 2828namespace OCA \UpdateNotification \Controller ;
2929
3030use OC \User \Backend ;
31+ use OCP \User \Backend \ICountUsersBackend ;
3132use OCA \UpdateNotification \ResetTokenBackgroundJob ;
3233use OCP \AppFramework \Controller ;
3334use OCP \AppFramework \Http ;
@@ -128,6 +129,7 @@ private function getUserCount(): int {
128129 $ backends = $ this ->userManager ->getBackends ();
129130 foreach ($ backends as $ backend ) {
130131 if ($ backend ->implementsActions (Backend::COUNT_USERS )) {
132+ /** @var ICountUsersBackend $backend */
131133 $ backendUsers = $ backend ->countUsers ();
132134 if ($ backendUsers !== false ) {
133135 $ userCount += $ backendUsers ;
Original file line number Diff line number Diff line change 18761876 </InvalidArgument >
18771877 </file >
18781878 <file src =" apps/updatenotification/lib/Controller/AdminController.php" >
1879- <UndefinedInterfaceMethod occurrences =" 1" >
1880- <code >countUsers</code >
1881- </UndefinedInterfaceMethod >
18821879 <InvalidScalarArgument occurrences =" 2" >
18831880 <code >$this-> timeFactory-> getTime()</code >
18841881 <code >0</code >
You can’t perform that action at this time.
0 commit comments