diff options
author | Joas Schilling <coding@schilljs.com> | 2023-04-13 14:21:30 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-04-13 14:28:41 +0200 |
commit | c1970caef4409c05f7e12b4e5a965b13d2a1665f (patch) | |
tree | 81bdc28b4c9052134d73a13c580c6250d9fe4659 /lib/Controller | |
parent | f3ff4a8820c3d3aedeffa4caee634407e8ac5aea (diff) |
chore(CS): Unify construct() calls
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/AvatarController.php | 2 | ||||
-rw-r--r-- | lib/Controller/CallController.php | 6 | ||||
-rw-r--r-- | lib/Controller/ChatController.php | 6 | ||||
-rw-r--r-- | lib/Controller/CommandController.php | 6 | ||||
-rw-r--r-- | lib/Controller/FederationController.php | 6 | ||||
-rw-r--r-- | lib/Controller/FilesIntegrationController.php | 2 | ||||
-rw-r--r-- | lib/Controller/GuestController.php | 6 | ||||
-rw-r--r-- | lib/Controller/HostedSignalingServerController.php | 6 | ||||
-rw-r--r-- | lib/Controller/MatterbridgeController.php | 6 | ||||
-rw-r--r-- | lib/Controller/MatterbridgeSettingsController.php | 6 | ||||
-rw-r--r-- | lib/Controller/PageController.php | 6 | ||||
-rw-r--r-- | lib/Controller/PollController.php | 6 | ||||
-rw-r--r-- | lib/Controller/PublicShareAuthController.php | 2 | ||||
-rw-r--r-- | lib/Controller/ReactionController.php | 6 | ||||
-rw-r--r-- | lib/Controller/RecordingController.php | 2 | ||||
-rw-r--r-- | lib/Controller/RoomController.php | 6 | ||||
-rw-r--r-- | lib/Controller/SettingsController.php | 6 | ||||
-rw-r--r-- | lib/Controller/SignalingController.php | 6 | ||||
-rw-r--r-- | lib/Controller/TempAvatarController.php | 2 |
19 files changed, 61 insertions, 33 deletions
diff --git a/lib/Controller/AvatarController.php b/lib/Controller/AvatarController.php index 977a94980..84a9080d8 100644 --- a/lib/Controller/AvatarController.php +++ b/lib/Controller/AvatarController.php @@ -46,7 +46,7 @@ class AvatarController extends AEnvironmentAwareController { protected AvatarService $avatarService, protected IUserSession $userSession, protected IL10N $l, - protected LoggerInterface $logger + protected LoggerInterface $logger, ) { parent::__construct($appName, $request); } diff --git a/lib/Controller/CallController.php b/lib/Controller/CallController.php index 9c9d960bc..c88991973 100644 --- a/lib/Controller/CallController.php +++ b/lib/Controller/CallController.php @@ -44,12 +44,14 @@ class CallController extends AEnvironmentAwareController { private IUserManager $userManager; private ITimeFactory $timeFactory; - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, ParticipantService $participantService, RoomService $roomService, IUserManager $userManager, - ITimeFactory $timeFactory) { + ITimeFactory $timeFactory, + ) { parent::__construct($appName, $request); $this->participantService = $participantService; $this->roomService = $roomService; diff --git a/lib/Controller/ChatController.php b/lib/Controller/ChatController.php index 399f5d81a..14e8f0e05 100644 --- a/lib/Controller/ChatController.php +++ b/lib/Controller/ChatController.php @@ -89,7 +89,8 @@ class ChatController extends AEnvironmentAwareController { protected ITrustedDomainHelper $trustedDomainHelper; private IL10N $l; - public function __construct(string $appName, + public function __construct( + string $appName, ?string $UserId, IRequest $request, IUserManager $userManager, @@ -112,7 +113,8 @@ class ChatController extends AEnvironmentAwareController { IEventDispatcher $eventDispatcher, IValidator $richObjectValidator, ITrustedDomainHelper $trustedDomainHelper, - IL10N $l) { + IL10N $l, + ) { parent::__construct($appName, $request); $this->userId = $UserId; diff --git a/lib/Controller/CommandController.php b/lib/Controller/CommandController.php index c31687cae..8aa31a4cf 100644 --- a/lib/Controller/CommandController.php +++ b/lib/Controller/CommandController.php @@ -35,9 +35,11 @@ use OCP\IRequest; class CommandController extends OCSController { protected CommandService $commandService; - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, - CommandService $commandService) { + CommandService $commandService, + ) { parent::__construct($appName, $request); $this->commandService = $commandService; } diff --git a/lib/Controller/FederationController.php b/lib/Controller/FederationController.php index 71daf4b4d..1f6e848bd 100644 --- a/lib/Controller/FederationController.php +++ b/lib/Controller/FederationController.php @@ -46,10 +46,12 @@ class FederationController extends OCSController { private IUserSession $userSession; - public function __construct(IRequest $request, + public function __construct( + IRequest $request, FederationManager $federationManager, Manager $talkManager, - IUserSession $userSession) { + IUserSession $userSession, + ) { parent::__construct(Application::APP_ID, $request); $this->federationManager = $federationManager; $this->talkManager = $talkManager; diff --git a/lib/Controller/FilesIntegrationController.php b/lib/Controller/FilesIntegrationController.php index 6d8419f3a..4606eaf5a 100644 --- a/lib/Controller/FilesIntegrationController.php +++ b/lib/Controller/FilesIntegrationController.php @@ -68,7 +68,7 @@ class FilesIntegrationController extends OCSController { TalkSession $talkSession, Util $util, IConfig $config, - IL10N $l10n + IL10N $l10n, ) { parent::__construct($appName, $request); $this->manager = $manager; diff --git a/lib/Controller/GuestController.php b/lib/Controller/GuestController.php index 07bcd545d..909359fda 100644 --- a/lib/Controller/GuestController.php +++ b/lib/Controller/GuestController.php @@ -33,9 +33,11 @@ use OCP\IRequest; class GuestController extends AEnvironmentAwareController { private GuestManager $guestManager; - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, - GuestManager $guestManager) { + GuestManager $guestManager, + ) { parent::__construct($appName, $request); $this->guestManager = $guestManager; diff --git a/lib/Controller/HostedSignalingServerController.php b/lib/Controller/HostedSignalingServerController.php index 726c0ff09..cd49296c0 100644 --- a/lib/Controller/HostedSignalingServerController.php +++ b/lib/Controller/HostedSignalingServerController.php @@ -46,13 +46,15 @@ class HostedSignalingServerController extends OCSController { protected LoggerInterface $logger; private HostedSignalingServerService $hostedSignalingServerService; - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, IClientService $clientService, IL10N $l10n, IConfig $config, LoggerInterface $logger, - HostedSignalingServerService $hostedSignalingServerService) { + HostedSignalingServerService $hostedSignalingServerService, + ) { parent::__construct($appName, $request); $this->clientService = $clientService; $this->l10n = $l10n; diff --git a/lib/Controller/MatterbridgeController.php b/lib/Controller/MatterbridgeController.php index e81e85205..173249d81 100644 --- a/lib/Controller/MatterbridgeController.php +++ b/lib/Controller/MatterbridgeController.php @@ -37,11 +37,13 @@ class MatterbridgeController extends AEnvironmentAwareController { protected Manager $manager; protected MatterbridgeManager $bridgeManager; - public function __construct(string $appName, + public function __construct( + string $appName, ?string $UserId, IRequest $request, Manager $manager, - MatterbridgeManager $bridgeManager) { + MatterbridgeManager $bridgeManager, + ) { parent::__construct($appName, $request); $this->userId = $UserId; $this->manager = $manager; diff --git a/lib/Controller/MatterbridgeSettingsController.php b/lib/Controller/MatterbridgeSettingsController.php index 4d01dc636..dd8e77485 100644 --- a/lib/Controller/MatterbridgeSettingsController.php +++ b/lib/Controller/MatterbridgeSettingsController.php @@ -36,9 +36,11 @@ use OCP\IRequest; class MatterbridgeSettingsController extends OCSController { protected MatterbridgeManager $bridgeManager; - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, - MatterbridgeManager $bridgeManager) { + MatterbridgeManager $bridgeManager, + ) { parent::__construct($appName, $request); $this->bridgeManager = $bridgeManager; } diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 3424910ab..88ddddf61 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -80,7 +80,8 @@ class PageController extends Controller { private IRootFolder $rootFolder; private IThrottler $throttler; - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, IEventDispatcher $eventDispatcher, RoomController $api, @@ -99,7 +100,8 @@ class PageController extends Controller { IRootFolder $rootFolder, IThrottler $throttler, Config $talkConfig, - IConfig $serverConfig) { + IConfig $serverConfig, + ) { parent::__construct($appName, $request); $this->eventDispatcher = $eventDispatcher; $this->api = $api; diff --git a/lib/Controller/PollController.php b/lib/Controller/PollController.php index af61ea3d3..11e243e14 100644 --- a/lib/Controller/PollController.php +++ b/lib/Controller/PollController.php @@ -48,13 +48,15 @@ class PollController extends AEnvironmentAwareController { protected ITimeFactory $timeFactory; protected LoggerInterface $logger; - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, ChatManager $chatManager, PollService $pollService, AttachmentService $attachmentService, ITimeFactory $timeFactory, - LoggerInterface $logger) { + LoggerInterface $logger, + ) { parent::__construct($appName, $request); $this->pollService = $pollService; $this->attachmentService = $attachmentService; diff --git a/lib/Controller/PublicShareAuthController.php b/lib/Controller/PublicShareAuthController.php index 6fbf6b2e6..9f3493d06 100644 --- a/lib/Controller/PublicShareAuthController.php +++ b/lib/Controller/PublicShareAuthController.php @@ -49,7 +49,7 @@ class PublicShareAuthController extends OCSController { IUserManager $userManager, IShareManager $shareManager, IUserSession $userSession, - RoomService $roomService + RoomService $roomService, ) { parent::__construct($appName, $request); $this->userManager = $userManager; diff --git a/lib/Controller/ReactionController.php b/lib/Controller/ReactionController.php index 1c4670238..2226a89fd 100644 --- a/lib/Controller/ReactionController.php +++ b/lib/Controller/ReactionController.php @@ -37,9 +37,11 @@ use OCP\IRequest; class ReactionController extends AEnvironmentAwareController { private ReactionManager $reactionManager; - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, - ReactionManager $reactionManager) { + ReactionManager $reactionManager, + ) { parent::__construct($appName, $request); $this->reactionManager = $reactionManager; } diff --git a/lib/Controller/RecordingController.php b/lib/Controller/RecordingController.php index 4e5b902b1..702f9bbc3 100644 --- a/lib/Controller/RecordingController.php +++ b/lib/Controller/RecordingController.php @@ -52,7 +52,7 @@ class RecordingController extends AEnvironmentAwareController { private ParticipantService $participantService, private RecordingService $recordingService, private RoomService $roomService, - private LoggerInterface $logger + private LoggerInterface $logger, ) { parent::__construct($appName, $request); } diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index 6bdc353c6..0656d038c 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -97,7 +97,8 @@ class RoomController extends AEnvironmentAwareController { protected array $commonReadMessages = []; - public function __construct(string $appName, + public function __construct( + string $appName, ?string $UserId, IRequest $request, IAppManager $appManager, @@ -119,7 +120,8 @@ class RoomController extends AEnvironmentAwareController { Config $talkConfig, ICloudIdManager $cloudIdManager, IThrottler $throttler, - LoggerInterface $logger) { + LoggerInterface $logger, + ) { parent::__construct($appName, $request); $this->session = $session; $this->appManager = $appManager; diff --git a/lib/Controller/SettingsController.php b/lib/Controller/SettingsController.php index a464060d5..5d26a110c 100644 --- a/lib/Controller/SettingsController.php +++ b/lib/Controller/SettingsController.php @@ -50,14 +50,16 @@ class SettingsController extends OCSController { protected LoggerInterface $logger; protected ?string $userId; - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, IRootFolder $rootFolder, IConfig $config, IGroupManager $groupManager, ParticipantService $participantService, LoggerInterface $logger, - ?string $userId) { + ?string $userId, + ) { parent::__construct($appName, $request); $this->rootFolder = $rootFolder; $this->config = $config; diff --git a/lib/Controller/SignalingController.php b/lib/Controller/SignalingController.php index ab3706f7c..40a8acd8a 100644 --- a/lib/Controller/SignalingController.php +++ b/lib/Controller/SignalingController.php @@ -77,7 +77,8 @@ class SignalingController extends OCSController { private LoggerInterface $logger; private ?string $userId; - public function __construct(string $appName, + public function __construct( + string $appName, IRequest $request, IConfig $serverConfig, Config $talkConfig, @@ -94,7 +95,8 @@ class SignalingController extends OCSController { IClientService $clientService, IThrottler $throttler, LoggerInterface $logger, - ?string $UserId) { + ?string $UserId, + ) { parent::__construct($appName, $request); $this->serverConfig = $serverConfig; $this->talkConfig = $talkConfig; diff --git a/lib/Controller/TempAvatarController.php b/lib/Controller/TempAvatarController.php index 286f6cd91..ebd33f2c1 100644 --- a/lib/Controller/TempAvatarController.php +++ b/lib/Controller/TempAvatarController.php @@ -47,7 +47,7 @@ class TempAvatarController extends OCSController { IAvatarManager $avatarManager, IL10N $l, LoggerInterface $logger, - string $userId + string $userId, ) { parent::__construct($appName, $request); $this->avatarManager = $avatarManager; |