Code Duplication    Length = 24-31 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/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/files_sharing/lib/Controller/ShareController.php 1 location

@@ 113-143 (lines=31) @@
110
	 * @param IL10N $l10n
111
	 * @param Defaults $defaults
112
	 */
113
	public function __construct($appName,
114
								IRequest $request,
115
								IConfig $config,
116
								IURLGenerator $urlGenerator,
117
								IUserManager $userManager,
118
								ILogger $logger,
119
								\OCP\Activity\IManager $activityManager,
120
								\OCP\Share\IManager $shareManager,
121
								ISession $session,
122
								IPreview $previewManager,
123
								IRootFolder $rootFolder,
124
								FederatedShareProvider $federatedShareProvider,
125
								EventDispatcherInterface $eventDispatcher,
126
								IL10N $l10n,
127
								Defaults $defaults) {
128
		parent::__construct($appName, $request);
129
130
		$this->config = $config;
131
		$this->urlGenerator = $urlGenerator;
132
		$this->userManager = $userManager;
133
		$this->logger = $logger;
134
		$this->activityManager = $activityManager;
135
		$this->shareManager = $shareManager;
136
		$this->session = $session;
137
		$this->previewManager = $previewManager;
138
		$this->rootFolder = $rootFolder;
139
		$this->federatedShareProvider = $federatedShareProvider;
140
		$this->eventDispatcher = $eventDispatcher;
141
		$this->l10n = $l10n;
142
		$this->defaults = $defaults;
143
	}
144
145
	/**
146
	 * @PublicPage

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

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