mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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>
This commit is contained in:
parent
9eedeb4012
commit
2800436948
9 changed files with 63 additions and 45 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue