aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-05 18:35:32 +0330
committerFaraz Samapoor <f.samapoor@gmail.com>2023-06-05 18:35:32 +0330
commitfc0e2a938fa8920120cbd611afb2eab7bccab021 (patch)
tree3deb4b59d84f809d0be4f9e3627dcf997612cad5 /core/Controller
parent25cdc35473e583856e0ac9941f78330f2a05d999 (diff)
downloadnextcloud-server-fc0e2a938fa8920120cbd611afb2eab7bccab021.tar.gz
nextcloud-server-fc0e2a938fa8920120cbd611afb2eab7bccab021.zip
Applies agreed-upon indentation convention to the changed controllers.
Based on https://github.com/nextcloud/server/pull/38636#discussion_r1218167753 Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/AutoCompleteController.php12
-rw-r--r--core/Controller/AvatarController.php22
-rw-r--r--core/Controller/CSRFTokenController.php8
-rw-r--r--core/Controller/ClientFlowLoginController.php28
-rw-r--r--core/Controller/ClientFlowLoginV2Controller.php22
-rw-r--r--core/Controller/ContactsMenuController.php8
-rw-r--r--core/Controller/CssController.php10
-rw-r--r--core/Controller/GuestAvatarController.php10
-rw-r--r--core/Controller/HoverCardController.php8
9 files changed, 73 insertions, 55 deletions
diff --git a/core/Controller/AutoCompleteController.php b/core/Controller/AutoCompleteController.php
index 4c1210c9ebc..29a0788ad57 100644
--- a/core/Controller/AutoCompleteController.php
+++ b/core/Controller/AutoCompleteController.php
@@ -40,11 +40,13 @@ use OCP\IRequest;
use OCP\Share\IShare;
class AutoCompleteController extends OCSController {
- public function __construct(string $appName,
- IRequest $request,
- private ISearch $collaboratorSearch,
- private IManager $autoCompleteManager,
- private IEventDispatcher $dispatcher) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private ISearch $collaboratorSearch,
+ private IManager $autoCompleteManager,
+ private IEventDispatcher $dispatcher,
+ ) {
parent::__construct($appName, $request);
}
diff --git a/core/Controller/AvatarController.php b/core/Controller/AvatarController.php
index f8b4674e41f..ba1792af708 100644
--- a/core/Controller/AvatarController.php
+++ b/core/Controller/AvatarController.php
@@ -51,16 +51,18 @@ use Psr\Log\LoggerInterface;
* @package OC\Core\Controller
*/
class AvatarController extends Controller {
- public function __construct(string $appName,
- IRequest $request,
- protected IAvatarManager $avatarManager,
- protected ICache $cache,
- protected IL10N $l10n,
- protected IUserManager $userManager,
- protected IRootFolder $rootFolder,
- protected LoggerInterface $logger,
- protected ?string $userId,
- protected TimeFactory $timeFactory) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ protected IAvatarManager $avatarManager,
+ protected ICache $cache,
+ protected IL10N $l10n,
+ protected IUserManager $userManager,
+ protected IRootFolder $rootFolder,
+ protected LoggerInterface $logger,
+ protected ?string $userId,
+ protected TimeFactory $timeFactory,
+ ) {
parent::__construct($appName, $request);
}
diff --git a/core/Controller/CSRFTokenController.php b/core/Controller/CSRFTokenController.php
index 3debce22077..95e67371b5d 100644
--- a/core/Controller/CSRFTokenController.php
+++ b/core/Controller/CSRFTokenController.php
@@ -33,9 +33,11 @@ use OCP\AppFramework\Http\JSONResponse;
use OCP\IRequest;
class CSRFTokenController extends Controller {
- public function __construct(string $appName,
- IRequest $request,
- private CsrfTokenManager $tokenManager) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private CsrfTokenManager $tokenManager,
+ ) {
parent::__construct($appName, $request);
}
diff --git a/core/Controller/ClientFlowLoginController.php b/core/Controller/ClientFlowLoginController.php
index c52d5af2f43..082d5b3f92e 100644
--- a/core/Controller/ClientFlowLoginController.php
+++ b/core/Controller/ClientFlowLoginController.php
@@ -59,19 +59,21 @@ use OCP\Session\Exceptions\SessionNotAvailableException;
class ClientFlowLoginController extends Controller {
public const STATE_NAME = 'client.flow.state.token';
- public function __construct(string $appName,
- IRequest $request,
- private IUserSession $userSession,
- private IL10N $l10n,
- private Defaults $defaults,
- private ISession $session,
- private IProvider $tokenProvider,
- private ISecureRandom $random,
- private IURLGenerator $urlGenerator,
- private ClientMapper $clientMapper,
- private AccessTokenMapper $accessTokenMapper,
- private ICrypto $crypto,
- private IEventDispatcher $eventDispatcher) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private IUserSession $userSession,
+ private IL10N $l10n,
+ private Defaults $defaults,
+ private ISession $session,
+ private IProvider $tokenProvider,
+ private ISecureRandom $random,
+ private IURLGenerator $urlGenerator,
+ private ClientMapper $clientMapper,
+ private AccessTokenMapper $accessTokenMapper,
+ private ICrypto $crypto,
+ private IEventDispatcher $eventDispatcher,
+ ) {
parent::__construct($appName, $request);
}
diff --git a/core/Controller/ClientFlowLoginV2Controller.php b/core/Controller/ClientFlowLoginV2Controller.php
index 1ada1fa0fa4..8a21148f589 100644
--- a/core/Controller/ClientFlowLoginV2Controller.php
+++ b/core/Controller/ClientFlowLoginV2Controller.php
@@ -51,16 +51,18 @@ class ClientFlowLoginV2Controller extends Controller {
public const TOKEN_NAME = 'client.flow.v2.login.token';
public const STATE_NAME = 'client.flow.v2.state.token';
- public function __construct(string $appName,
- IRequest $request,
- private LoginFlowV2Service $loginFlowV2Service,
- private IURLGenerator $urlGenerator,
- private ISession $session,
- private IUserSession $userSession,
- private ISecureRandom $random,
- private Defaults $defaults,
- private ?string $userId,
- private IL10N $l10n) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private LoginFlowV2Service $loginFlowV2Service,
+ private IURLGenerator $urlGenerator,
+ private ISession $session,
+ private IUserSession $userSession,
+ private ISecureRandom $random,
+ private Defaults $defaults,
+ private ?string $userId,
+ private IL10N $l10n,
+ ) {
parent::__construct($appName, $request);
}
diff --git a/core/Controller/ContactsMenuController.php b/core/Controller/ContactsMenuController.php
index 740b05cb00a..7b8f2e50aa5 100644
--- a/core/Controller/ContactsMenuController.php
+++ b/core/Controller/ContactsMenuController.php
@@ -33,9 +33,11 @@ use OCP\IRequest;
use OCP\IUserSession;
class ContactsMenuController extends Controller {
- public function __construct(IRequest $request,
- private IUserSession $userSession,
- private Manager $manager) {
+ public function __construct(
+ IRequest $request,
+ private IUserSession $userSession,
+ private Manager $manager,
+ ) {
parent::__construct('core', $request);
}
diff --git a/core/Controller/CssController.php b/core/Controller/CssController.php
index c992009f497..7aec5850aea 100644
--- a/core/Controller/CssController.php
+++ b/core/Controller/CssController.php
@@ -46,10 +46,12 @@ use OCP\IRequest;
class CssController extends Controller {
protected IAppData $appData;
- public function __construct(string $appName,
- IRequest $request,
- Factory $appDataFactory,
- protected ITimeFactory $timeFactory) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ Factory $appDataFactory,
+ protected ITimeFactory $timeFactory,
+ ) {
parent::__construct($appName, $request);
$this->appData = $appDataFactory->get('css');
diff --git a/core/Controller/GuestAvatarController.php b/core/Controller/GuestAvatarController.php
index ded989ea99c..6f06451b796 100644
--- a/core/Controller/GuestAvatarController.php
+++ b/core/Controller/GuestAvatarController.php
@@ -36,10 +36,12 @@ class GuestAvatarController extends Controller {
/**
* GuestAvatarController constructor.
*/
- public function __construct(string $appName,
- IRequest $request,
- private IAvatarManager $avatarManager,
- private LoggerInterface $logger) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private IAvatarManager $avatarManager,
+ private LoggerInterface $logger,
+ ) {
parent::__construct($appName, $request);
}
diff --git a/core/Controller/HoverCardController.php b/core/Controller/HoverCardController.php
index 154dc01ad97..cfe95be0431 100644
--- a/core/Controller/HoverCardController.php
+++ b/core/Controller/HoverCardController.php
@@ -33,9 +33,11 @@ use OCP\IUserSession;
use OCP\Share\IShare;
class HoverCardController extends \OCP\AppFramework\OCSController {
- public function __construct(IRequest $request,
- private IUserSession $userSession,
- private Manager $manager) {
+ public function __construct(
+ IRequest $request,
+ private IUserSession $userSession,
+ private Manager $manager,
+ ) {
parent::__construct('core', $request);
}