Code Duplication    Length = 8-12 lines in 3 locations

core/Controller/TwoFactorChallengeController.php 1 location

@@ 58-65 (lines=8) @@
55
	 * @param ISession $session
56
	 * @param IURLGenerator $urlGenerator
57
	 */
58
	public function __construct($appName, IRequest $request, Manager $twoFactorManager, IUserSession $userSession,
59
		ISession $session, IURLGenerator $urlGenerator) {
60
		parent::__construct($appName, $request);
61
		$this->twoFactorManager = $twoFactorManager;
62
		$this->userSession = $userSession;
63
		$this->session = $session;
64
		$this->urlGenerator = $urlGenerator;
65
	}
66
67
	/**
68
	 * @return string

settings/Controller/GroupsController.php 1 location

@@ 56-67 (lines=12) @@
53
	 * @param bool $isAdmin
54
	 * @param IL10N $l10n
55
	 */
56
	public function __construct($appName,
57
								IRequest $request,
58
								IGroupManager $groupManager,
59
								IUserSession $userSession,
60
								$isAdmin,
61
								IL10N $l10n) {
62
		parent::__construct($appName, $request);
63
		$this->groupManager = $groupManager;
64
		$this->userSession = $userSession;
65
		$this->isAdmin = $isAdmin;
66
		$this->l10n = $l10n;
67
	}
68
69
	/**
70
	 * @NoAdminRequired

settings/Controller/SettingsPageController.php 1 location

@@ 56-67 (lines=12) @@
53
	 * @param IGroupManager $groupManager
54
	 * @param IUserSession $userSession
55
	 */
56
	public function __construct($appName,
57
								IRequest $request,
58
								ISettingsManager $settingsManager,
59
								IURLGenerator $urlGenerator,
60
								IGroupManager $groupManager,
61
								IUserSession $userSession) {
62
		parent::__construct($appName, $request);
63
		$this->settingsManager = $settingsManager;
64
		$this->urlGenerator = $urlGenerator;
65
		$this->groupManager = $groupManager;
66
		$this->userSession = $userSession;
67
	}
68
69
	/**
70
	 * @NoAdminRequired