Code Duplication    Length = 26-29 lines in 3 locations

apps/files_sharing/lib/Controller/ShareesAPIController.php 1 location

@@ 121-146 (lines=26) @@
118
	 * @param IClientService $clientService
119
	 * @param ICloudIdManager $cloudIdManager
120
	 */
121
	public function __construct($appName,
122
								IRequest $request,
123
								IGroupManager $groupManager,
124
								IUserManager $userManager,
125
								IManager $contactsManager,
126
								IConfig $config,
127
								IUserSession $userSession,
128
								IURLGenerator $urlGenerator,
129
								ILogger $logger,
130
								\OCP\Share\IManager $shareManager,
131
								IClientService $clientService,
132
								ICloudIdManager $cloudIdManager
133
	) {
134
		parent::__construct($appName, $request);
135
136
		$this->groupManager = $groupManager;
137
		$this->userManager = $userManager;
138
		$this->contactsManager = $contactsManager;
139
		$this->config = $config;
140
		$this->userSession = $userSession;
141
		$this->urlGenerator = $urlGenerator;
142
		$this->logger = $logger;
143
		$this->shareManager = $shareManager;
144
		$this->clientService = $clientService;
145
		$this->cloudIdManager = $cloudIdManager;
146
	}
147
148
	/**
149
	 * @param string $search

core/Controller/LostController.php 1 location

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

apps/provisioning_api/lib/Controller/UsersController.php 1 location

@@ 95-123 (lines=29) @@
92
	 * @param IFactory $l10nFactory
93
	 * @param NewUserMailHelper $newUserMailHelper
94
	 */
95
	public function __construct($appName,
96
								IRequest $request,
97
								IUserManager $userManager,
98
								IConfig $config,
99
								IGroupManager $groupManager,
100
								IUserSession $userSession,
101
								AccountManager $accountManager,
102
								ILogger $logger,
103
								$fromMailAddress,
104
								IURLGenerator $urlGenerator,
105
								IMailer $mailer,
106
								\OC_Defaults $defaults,
107
								IFactory $l10nFactory,
108
								NewUserMailHelper $newUserMailHelper) {
109
		parent::__construct($appName, $request);
110
111
		$this->userManager = $userManager;
112
		$this->config = $config;
113
		$this->groupManager = $groupManager;
114
		$this->userSession = $userSession;
115
		$this->accountManager = $accountManager;
116
		$this->logger = $logger;
117
		$this->fromMailAddress = $fromMailAddress;
118
		$this->urlGenerator = $urlGenerator;
119
		$this->mailer = $mailer;
120
		$this->defaults = $defaults;
121
		$this->l10nFactory = $l10nFactory;
122
		$this->newUserMailHelper = $newUserMailHelper;
123
	}
124
125
	/**
126
	 * @NoAdminRequired