Code Duplication    Length = 22-29 lines in 3 locations

core/Controller/LostController.php 1 location

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

apps/theming/lib/Controller/ThemingController.php 1 location

@@ 105-133 (lines=29) @@
102
	 * @param IAppManager $appManager
103
	 * @param ImageManager $imageManager
104
	 */
105
	public function __construct(
106
		$appName,
107
		IRequest $request,
108
		IConfig $config,
109
		ThemingDefaults $themingDefaults,
110
		Util $util,
111
		ITimeFactory $timeFactory,
112
		IL10N $l,
113
		ITempManager $tempManager,
114
		IAppData $appData,
115
		SCSSCacher $scssCacher,
116
		IURLGenerator $urlGenerator,
117
		IAppManager $appManager,
118
		ImageManager $imageManager
119
	) {
120
		parent::__construct($appName, $request);
121
122
		$this->themingDefaults = $themingDefaults;
123
		$this->util = $util;
124
		$this->timeFactory = $timeFactory;
125
		$this->l10n = $l;
126
		$this->config = $config;
127
		$this->tempManager = $tempManager;
128
		$this->appData = $appData;
129
		$this->scssCacher = $scssCacher;
130
		$this->urlGenerator = $urlGenerator;
131
		$this->appManager = $appManager;
132
		$this->imageManager = $imageManager;
133
	}
134
135
	/**
136
	 * @param string $setting

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