summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit/lib/AppInfo
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-03-05 15:02:35 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-03-08 08:56:53 +0100
commit109b84b025f75d84845a4a5a299861242d4fa43f (patch)
tree53d3caa5628efc5dc4a79d37c1476e589302f2ed /apps/admin_audit/lib/AppInfo
parentf5dc657e941e23a98ef8f040d61149a671bcb5da (diff)
downloadnextcloud-server-109b84b025f75d84845a4a5a299861242d4fa43f.tar.gz
nextcloud-server-109b84b025f75d84845a4a5a299861242d4fa43f.zip
Add return type to functions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/admin_audit/lib/AppInfo')
-rw-r--r--apps/admin_audit/lib/AppInfo/Application.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/apps/admin_audit/lib/AppInfo/Application.php b/apps/admin_audit/lib/AppInfo/Application.php
index 3e67085e3ba..d7afb96ea87 100644
--- a/apps/admin_audit/lib/AppInfo/Application.php
+++ b/apps/admin_audit/lib/AppInfo/Application.php
@@ -109,7 +109,7 @@ class Application extends App implements IBootstrap {
* Register hooks in order to log them
*/
private function registerHooks(LoggerInterface $logger,
- IServerContainer $serverContainer) {
+ IServerContainer $serverContainer): void {
$this->userManagementHooks($logger, $serverContainer->get(IUserSession::class));
$this->groupHooks($logger, $serverContainer->get(IGroupManager::class));
$this->authHooks($logger);
@@ -129,7 +129,7 @@ class Application extends App implements IBootstrap {
}
private function userManagementHooks(LoggerInterface $logger,
- IUserSession $userSession) {
+ IUserSession $userSession): void {
$userActions = new UserManagement($logger);
Util::connectHook('OC_User', 'post_createUser', $userActions, 'create');
@@ -143,7 +143,7 @@ class Application extends App implements IBootstrap {
}
private function groupHooks(LoggerInterface $logger,
- IGroupManager $groupManager) {
+ IGroupManager $groupManager): void {
$groupActions = new GroupManagement($logger);
assert($groupManager instanceof GroupManager);
@@ -153,7 +153,7 @@ class Application extends App implements IBootstrap {
$groupManager->listen('\OC\Group', 'postCreate', [$groupActions, 'createGroup']);
}
- private function sharingHooks(LoggerInterface $logger) {
+ private function sharingHooks(LoggerInterface $logger): void {
$shareActions = new Sharing($logger);
Util::connectHook(Share::class, 'post_shared', $shareActions, 'shared');
@@ -165,7 +165,7 @@ class Application extends App implements IBootstrap {
Util::connectHook(Share::class, 'share_link_access', $shareActions, 'shareAccessed');
}
- private function authHooks(LoggerInterface $logger) {
+ private function authHooks(LoggerInterface $logger): void {
$authActions = new Auth($logger);
Util::connectHook('OC_User', 'pre_login', $authActions, 'loginAttempt');
@@ -174,7 +174,7 @@ class Application extends App implements IBootstrap {
}
private function appHooks(LoggerInterface $logger,
- EventDispatcherInterface $eventDispatcher) {
+ EventDispatcherInterface $eventDispatcher): void {
$eventDispatcher->addListener(ManagerEvent::EVENT_APP_ENABLE, function (ManagerEvent $event) use ($logger) {
$appActions = new AppManagement($logger);
$appActions->enableApp($event->getAppID());
@@ -190,7 +190,7 @@ class Application extends App implements IBootstrap {
}
private function consoleHooks(LoggerInterface $logger,
- EventDispatcherInterface $eventDispatcher) {
+ EventDispatcherInterface $eventDispatcher): void {
$eventDispatcher->addListener(ConsoleEvent::EVENT_RUN, function (ConsoleEvent $event) use ($logger) {
$appActions = new Console($logger);
$appActions->runCommand($event->getArguments());
@@ -198,7 +198,7 @@ class Application extends App implements IBootstrap {
}
private function fileHooks(LoggerInterface $logger,
- EventDispatcherInterface $eventDispatcher) {
+ EventDispatcherInterface $eventDispatcher): void {
$fileActions = new Files($logger);
$eventDispatcher->addListener(
IPreview::EVENT,
@@ -259,20 +259,20 @@ class Application extends App implements IBootstrap {
);
}
- private function versionsHooks(LoggerInterface $logger) {
+ private function versionsHooks(LoggerInterface $logger): void {
$versionsActions = new Versions($logger);
Util::connectHook('\OCP\Versions', 'rollback', $versionsActions, 'rollback');
Util::connectHook('\OCP\Versions', 'delete', $versionsActions, 'delete');
}
- private function trashbinHooks(LoggerInterface $logger) {
+ private function trashbinHooks(LoggerInterface $logger): void {
$trashActions = new Trashbin($logger);
Util::connectHook('\OCP\Trashbin', 'preDelete', $trashActions, 'delete');
Util::connectHook('\OCA\Files_Trashbin\Trashbin', 'post_restore', $trashActions, 'restore');
}
private function securityHooks(LoggerInterface $logger,
- EventDispatcherInterface $eventDispatcher) {
+ EventDispatcherInterface $eventDispatcher): void {
$eventDispatcher->addListener(IProvider::EVENT_SUCCESS, function (GenericEvent $event) use ($logger) {
$security = new Security($logger);
$security->twofactorSuccess($event->getSubject(), $event->getArguments());