summaryrefslogtreecommitdiffstats
path: root/lib/Middleware
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-04-13 14:21:30 +0200
committerJoas Schilling <coding@schilljs.com>2023-04-13 14:28:41 +0200
commitc1970caef4409c05f7e12b4e5a965b13d2a1665f (patch)
tree81bdc28b4c9052134d73a13c580c6250d9fe4659 /lib/Middleware
parentf3ff4a8820c3d3aedeffa4caee634407e8ac5aea (diff)
chore(CS): Unify construct() calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Middleware')
-rw-r--r--lib/Middleware/CanUseTalkMiddleware.php6
-rw-r--r--lib/Middleware/InjectionMiddleware.php6
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/Middleware/CanUseTalkMiddleware.php b/lib/Middleware/CanUseTalkMiddleware.php
index 7dda59402..7ee1da4a1 100644
--- a/lib/Middleware/CanUseTalkMiddleware.php
+++ b/lib/Middleware/CanUseTalkMiddleware.php
@@ -48,11 +48,13 @@ class CanUseTalkMiddleware extends Middleware {
private Config $talkConfig;
private IConfig $serverConfig;
- public function __construct(IUserSession $userSession,
+ public function __construct(
+ IUserSession $userSession,
IGroupManager $groupManager,
IControllerMethodReflector $reflector,
Config $talkConfig,
- IConfig $serverConfig) {
+ IConfig $serverConfig,
+ ) {
$this->userSession = $userSession;
$this->groupManager = $groupManager;
$this->reflector = $reflector;
diff --git a/lib/Middleware/InjectionMiddleware.php b/lib/Middleware/InjectionMiddleware.php
index 7372766e2..67e10d566 100644
--- a/lib/Middleware/InjectionMiddleware.php
+++ b/lib/Middleware/InjectionMiddleware.php
@@ -57,13 +57,15 @@ class InjectionMiddleware extends Middleware {
protected IThrottler $throttler;
protected ?string $userId;
- public function __construct(IRequest $request,
+ public function __construct(
+ IRequest $request,
IControllerMethodReflector $reflector,
ParticipantService $participantService,
TalkSession $talkSession,
Manager $manager,
IThrottler $throttler,
- ?string $userId) {
+ ?string $userId,
+ ) {
$this->request = $request;
$this->reflector = $reflector;
$this->participantService = $participantService;