Code Duplication    Length = 20-26 lines in 4 locations

core/Controller/ClientFlowLoginController.php 1 location

@@ 88-111 (lines=24) @@
85
	 * @param AccessTokenMapper $accessTokenMapper
86
	 * @param ICrypto $crypto
87
	 */
88
	public function __construct($appName,
89
								IRequest $request,
90
								IUserSession $userSession,
91
								IL10N $l10n,
92
								Defaults $defaults,
93
								ISession $session,
94
								IProvider $tokenProvider,
95
								ISecureRandom $random,
96
								IURLGenerator $urlGenerator,
97
								ClientMapper $clientMapper,
98
								AccessTokenMapper $accessTokenMapper,
99
								ICrypto $crypto) {
100
		parent::__construct($appName, $request);
101
		$this->userSession = $userSession;
102
		$this->l10n = $l10n;
103
		$this->defaults = $defaults;
104
		$this->session = $session;
105
		$this->tokenProvider = $tokenProvider;
106
		$this->random = $random;
107
		$this->urlGenerator = $urlGenerator;
108
		$this->clientMapper = $clientMapper;
109
		$this->accessTokenMapper = $accessTokenMapper;
110
		$this->crypto = $crypto;
111
	}
112
113
	/**
114
	 * @return string

core/Controller/LoginController.php 1 location

@@ 93-114 (lines=22) @@
90
	 * @param Defaults $defaults
91
	 * @param Throttler $throttler
92
	 */
93
	public function __construct($appName,
94
								IRequest $request,
95
								IUserManager $userManager,
96
								IConfig $config,
97
								ISession $session,
98
								IUserSession $userSession,
99
								IURLGenerator $urlGenerator,
100
								ILogger $logger,
101
								Manager $twoFactorManager,
102
								Defaults $defaults,
103
								Throttler $throttler) {
104
		parent::__construct($appName, $request);
105
		$this->userManager = $userManager;
106
		$this->config = $config;
107
		$this->session = $session;
108
		$this->userSession = $userSession;
109
		$this->urlGenerator = $urlGenerator;
110
		$this->logger = $logger;
111
		$this->twoFactorManager = $twoFactorManager;
112
		$this->defaults = $defaults;
113
		$this->throttler = $throttler;
114
	}
115
116
	/**
117
	 * @NoAdminRequired

core/Controller/LostController.php 1 location

@@ 98-123 (lines=26) @@
95
	 * @param ITimeFactory $timeFactory
96
	 * @param ICrypto $crypto
97
	 */
98
	public function __construct($appName,
99
								IRequest $request,
100
								IURLGenerator $urlGenerator,
101
								IUserManager $userManager,
102
								Defaults $defaults,
103
								IL10N $l10n,
104
								IConfig $config,
105
								ISecureRandom $secureRandom,
106
								$defaultMailAddress,
107
								IManager $encryptionManager,
108
								IMailer $mailer,
109
								ITimeFactory $timeFactory,
110
								ICrypto $crypto) {
111
		parent::__construct($appName, $request);
112
		$this->urlGenerator = $urlGenerator;
113
		$this->userManager = $userManager;
114
		$this->defaults = $defaults;
115
		$this->l10n = $l10n;
116
		$this->secureRandom = $secureRandom;
117
		$this->from = $defaultMailAddress;
118
		$this->encryptionManager = $encryptionManager;
119
		$this->config = $config;
120
		$this->mailer = $mailer;
121
		$this->timeFactory = $timeFactory;
122
		$this->crypto = $crypto;
123
	}
124
125
	/**
126
	 * Someone wants to reset their password:

settings/Controller/CheckSetupController.php 1 location

@@ 73-92 (lines=20) @@
70
	/** @var EventDispatcherInterface */
71
	private $dispatcher;
72
73
	public function __construct($AppName,
74
								IRequest $request,
75
								IConfig $config,
76
								IClientService $clientService,
77
								IURLGenerator $urlGenerator,
78
								\OC_Util $util,
79
								IL10N $l10n,
80
								Checker $checker,
81
								ILogger $logger,
82
								EventDispatcherInterface $dispatcher) {
83
		parent::__construct($AppName, $request);
84
		$this->config = $config;
85
		$this->clientService = $clientService;
86
		$this->util = $util;
87
		$this->urlGenerator = $urlGenerator;
88
		$this->l10n = $l10n;
89
		$this->checker = $checker;
90
		$this->logger = $logger;
91
		$this->dispatcher = $dispatcher;
92
	}
93
94
	/**
95
	 * Checks if the server can connect to the internet using HTTPS and HTTP