]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/BaseNotifications.php
Apply suggestions from code review
[friendica.git] / src / Module / BaseNotifications.php
index a011961b67ede1026b6ce2737c1b4ba71dedb373..117530d2567fd1df738e82578e27268a4d8b0b3a 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -90,11 +90,11 @@ abstract class BaseNotifications extends BaseModule
         */
        abstract public function getNotifications();
 
-       public function __construct(L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, IHandleUserSessions $userSession, array $server, array $parameters = [])
+       public function __construct(L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, IHandleUserSessions $session, array $server, array $parameters = [])
        {
                parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
 
-               if (!$userSession->getLocalUserId()) {
+               if (!$session->getLocalUserId()) {
                        throw new ForbiddenException($this->t('Permission denied.'));
                }
 
@@ -158,7 +158,7 @@ abstract class BaseNotifications extends BaseModule
        /**
         * List of pages for the Notifications TabBar
         *
-        * @return array with with notifications TabBar data
+        * @return array with notifications TabBar data
         * @throws Exception
         */
        private function getTabs()