]> source.dussan.org Git - nextcloud-server.git/commitdiff
Applies agreed-upon indentation convention to the changed controllers.
authorFaraz Samapoor <f.samapoor@gmail.com>
Mon, 5 Jun 2023 15:17:57 +0000 (18:47 +0330)
committerLouis <6653109+artonge@users.noreply.github.com>
Tue, 20 Jun 2023 08:38:46 +0000 (10:38 +0200)
Based on https://github.com/nextcloud/server/pull/38636#discussion_r1218167753

Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
core/Controller/SearchController.php
core/Controller/TranslationApiController.php
core/Controller/TwoFactorChallengeController.php
core/Controller/UnifiedSearchController.php
core/Controller/UserController.php
core/Controller/WebAuthnController.php
core/Controller/WellKnownController.php
core/Controller/WhatsNewController.php
core/Controller/WipeController.php

index 39df25038401b1ec6095d06dcb3888343bb5ab9e..f839c16e8dac52e2372a1a0f7b8b8586625b493d 100644 (file)
@@ -34,10 +34,12 @@ use OCP\Search\Result;
 use Psr\Log\LoggerInterface;
 
 class SearchController extends Controller {
-       public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               private ISearch $searcher,
-                                                               private LoggerInterface $logger) {
+       public function __construct(
+               string $appName,
+               IRequest $request,
+               private ISearch $searcher,
+               private LoggerInterface $logger,
+       ) {
                parent::__construct($appName, $request);
        }
 
index 734834d15c943f63a38e0274f9e2eee18dbb1ba2..c1628c24555aaa16ca7d7b6ab03050af886e20f2 100644 (file)
@@ -36,10 +36,12 @@ use OCP\Translation\CouldNotTranslateException;
 use OCP\Translation\ITranslationManager;
 
 class TranslationApiController extends \OCP\AppFramework\OCSController {
-       public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               private ITranslationManager $translationManager,
-                                                               private IL10N $l10n) {
+       public function __construct(
+               string $appName,
+               IRequest $request,
+               private ITranslationManager $translationManager,
+               private IL10N $l10n,
+       ) {
                parent::__construct($appName, $request);
        }
 
index c8fb6da79d3084bf95d5b2d48732fec2be7c8ccb..40b100c41bdab325e1323eef9a35cc1e95c78b13 100644 (file)
@@ -42,13 +42,15 @@ use OCP\IUserSession;
 use Psr\Log\LoggerInterface;
 
 class TwoFactorChallengeController extends Controller {
-       public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               private Manager $twoFactorManager,
-                                                               private IUserSession $userSession,
-                                                               private ISession $session,
-                                                               private IURLGenerator $urlGenerator,
-                                                               private LoggerInterface $logger) {
+       public function __construct(
+               string $appName,
+               IRequest $request,
+               private Manager $twoFactorManager,
+               private IUserSession $userSession,
+               private ISession $session,
+               private IURLGenerator $urlGenerator,
+               private LoggerInterface $logger,
+       ) {
                parent::__construct($appName, $request);
        }
 
index a41fa6206b259cee2d42061f65a630830dbb6ac9..7e73ac8100fd194e0453af6894b9768c31913716 100644 (file)
@@ -40,11 +40,13 @@ use OCP\Search\ISearchQuery;
 use Symfony\Component\Routing\Exception\ResourceNotFoundException;
 
 class UnifiedSearchController extends OCSController {
-       public function __construct(IRequest $request,
-                                                               private IUserSession $userSession,
-                                                               private SearchComposer $composer,
-                                                               private IRouter $router,
-                                                               private IURLGenerator $urlGenerator) {
+       public function __construct(
+               IRequest $request,
+               private IUserSession $userSession,
+               private SearchComposer $composer,
+               private IRouter $router,
+               private IURLGenerator $urlGenerator,
+       ) {
                parent::__construct('core', $request);
        }
 
index 51b31afd18f1cade23b01f511af70c4bd4fa9ed0..f8dbc1af0270089e78670549363576aaf94dc176 100644 (file)
@@ -30,9 +30,11 @@ use OCP\IRequest;
 use OCP\IUserManager;
 
 class UserController extends Controller {
-       public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               protected IUserManager $userManager) {
+       public function __construct(
+               string $appName,
+               IRequest $request,
+               protected IUserManager $userManager,
+       ) {
                parent::__construct($appName, $request);
        }
 
index d4ee5637598ee1e13fc4d114e3af7caa8b2a2b08..08a6b36d276f33366f9315c505a61cf88de759bb 100644 (file)
@@ -45,13 +45,15 @@ class WebAuthnController extends Controller {
        private const WEBAUTHN_LOGIN = 'webauthn_login';
        private const WEBAUTHN_LOGIN_UID = 'webauthn_login_uid';
 
-       public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               private Manager $webAuthnManger,
-                                                               private ISession $session,
-                                                               private LoggerInterface $logger,
-                                                               private WebAuthnChain $webAuthnChain,
-                                                               private URLGenerator $urlGenerator) {
+       public function __construct(
+               string $appName,
+               IRequest $request,
+               private Manager $webAuthnManger,
+               private ISession $session,
+               private LoggerInterface $logger,
+               private WebAuthnChain $webAuthnChain,
+               private URLGenerator $urlGenerator,
+       ) {
                parent::__construct($appName, $request);
        }
 
index ea5e77b74bf62affc59f4f06e2dd1ec917457335..2e317ae01b5d9b1d660eb1303d563c4e60edf363 100644 (file)
@@ -33,8 +33,10 @@ use OCP\AppFramework\Http\Response;
 use OCP\IRequest;
 
 class WellKnownController extends Controller {
-       public function __construct(IRequest $request,
-                                                               private RequestManager $requestManager) {
+       public function __construct(
+               IRequest $request,
+               private RequestManager $requestManager,
+       ) {
                parent::__construct('core', $request);
        }
 
index 39939a02a639906f96ced63f8a2e6e7c384f3a51..0791ce616f560d50467bd185f7ff297b6c92857e 100644 (file)
@@ -37,16 +37,18 @@ use OCP\IUserSession;
 use OCP\L10N\IFactory;
 
 class WhatsNewController extends OCSController {
-       public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               CapabilitiesManager $capabilitiesManager,
-                                                               private IUserSession $userSession,
-                                                               IUserManager $userManager,
-                                                               Manager $keyManager,
-                                                               private IConfig $config,
-                                                               private ChangesCheck $whatsNewService,
-                                                               private IFactory $langFactory,
-                                                               private Defaults $defaults) {
+       public function __construct(
+               string $appName,
+               IRequest $request,
+               CapabilitiesManager $capabilitiesManager,
+               private IUserSession $userSession,
+               IUserManager $userManager,
+               Manager $keyManager,
+               private IConfig $config,
+               private ChangesCheck $whatsNewService,
+               private IFactory $langFactory,
+               private Defaults $defaults,
+       ) {
                parent::__construct($appName, $request, $capabilitiesManager, $userSession, $userManager, $keyManager);
        }
 
index 70bd66e2d8bb234fecb91ce8a71e14c784b96f66..6ffb950ca8613636e60255633999cfae7cdd1714 100644 (file)
@@ -33,9 +33,11 @@ use OCP\AppFramework\Http\JSONResponse;
 use OCP\IRequest;
 
 class WipeController extends Controller {
-       public function __construct(string $appName,
-                                                               IRequest $request,
-                                                               private RemoteWipe $remoteWipe) {
+       public function __construct(
+               string $appName,
+               IRequest $request,
+               private RemoteWipe $remoteWipe,
+       ) {
                parent::__construct($appName, $request);
        }