Code cleanup
authorAlexander Ebert <ebert@woltlab.com>
Wed, 8 Dec 2021 13:56:53 +0000 (14:56 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 8 Dec 2021 13:56:53 +0000 (14:56 +0100)
wcfsetup/install/files/lib/data/moderation/queue/ModerationQueueAction.class.php
wcfsetup/install/files/lib/data/user/notification/UserNotificationAction.class.php

index 4027289aa6e1126c146dd100067442698bb2157b..faf69c75fa4f0d46427f8bd547a844c92cc8f33b 100644 (file)
@@ -6,11 +6,8 @@ use wcf\data\AbstractDatabaseObjectAction;
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\data\user\User;
 use wcf\system\clipboard\ClipboardHandler;
-use wcf\system\database\exception\DatabaseQueryException;
-use wcf\system\database\exception\DatabaseQueryExecutionException;
 use wcf\system\database\util\PreparedStatementConditionBuilder;
 use wcf\system\exception\PermissionDeniedException;
-use wcf\system\exception\SystemException;
 use wcf\system\exception\UserInputException;
 use wcf\system\moderation\queue\IModerationQueueHandler;
 use wcf\system\moderation\queue\ModerationQueueManager;
index fac145c4482ce545ba31bb0a10386682007a2d8a..e5a21b0753be2476ea0e06e782040b297eed865e 100644 (file)
@@ -241,7 +241,6 @@ class UserNotificationAction extends AbstractDatabaseObjectAction
                 $image = '<span class="icon icon48 fa-users"></span>';
             }
 
-
             if ($event->isConfirmed()) {
                 $link = $event->getLink();
             } else {
@@ -251,7 +250,7 @@ class UserNotificationAction extends AbstractDatabaseObjectAction
                 );
             }
 
-            $usernames = array_map(static function (UserProfile $userProfile) {
+            $usernames = \array_map(static function (UserProfile $userProfile) {
                 return $userProfile->getFormattedUsername();
             }, $event->getAuthors());