Code Duplication    Length = 22-25 lines in 3 locations

apps/files_sharing/lib/Controllers/ShareController.php 1 location

@@ 101-125 (lines=25) @@
98
	 * @param IRootFolder $rootFolder
99
	 * @param FederatedShareProvider $federatedShareProvider
100
	 */
101
	public function __construct($appName,
102
								IRequest $request,
103
								IConfig $config,
104
								IURLGenerator $urlGenerator,
105
								IUserManager $userManager,
106
								ILogger $logger,
107
								\OCP\Activity\IManager $activityManager,
108
								\OCP\Share\IManager $shareManager,
109
								ISession $session,
110
								IPreview $previewManager,
111
								IRootFolder $rootFolder,
112
								FederatedShareProvider $federatedShareProvider) {
113
		parent::__construct($appName, $request);
114
115
		$this->config = $config;
116
		$this->urlGenerator = $urlGenerator;
117
		$this->userManager = $userManager;
118
		$this->logger = $logger;
119
		$this->activityManager = $activityManager;
120
		$this->shareManager = $shareManager;
121
		$this->session = $session;
122
		$this->previewManager = $previewManager;
123
		$this->rootFolder = $rootFolder;
124
		$this->federatedShareProvider = $federatedShareProvider;
125
	}
126
127
	/**
128
	 * @PublicPage

core/Controller/LostController.php 1 location

@@ 88-111 (lines=24) @@
85
	 * @param IMailer $mailer
86
	 * @param ITimeFactory $timeFactory
87
	 */
88
	public function __construct($appName,
89
								IRequest $request,
90
								IURLGenerator $urlGenerator,
91
								IUserManager $userManager,
92
								OC_Defaults $defaults,
93
								IL10N $l10n,
94
								IConfig $config,
95
								ISecureRandom $secureRandom,
96
								$from,
97
								$isDataEncrypted,
98
								IMailer $mailer,
99
								ITimeFactory $timeFactory) {
100
		parent::__construct($appName, $request);
101
		$this->urlGenerator = $urlGenerator;
102
		$this->userManager = $userManager;
103
		$this->defaults = $defaults;
104
		$this->l10n = $l10n;
105
		$this->secureRandom = $secureRandom;
106
		$this->from = $from;
107
		$this->isDataEncrypted = $isDataEncrypted;
108
		$this->config = $config;
109
		$this->mailer = $mailer;
110
		$this->timeFactory = $timeFactory;
111
	}
112
113
	/**
114
	 * Someone wants to reset their password:

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

@@ 108-129 (lines=22) @@
105
	 * @param ILogger $logger
106
	 * @param \OCP\Share\IManager $shareManager
107
	 */
108
	public function __construct($appName,
109
			IRequest $request,
110
			IGroupManager $groupManager,
111
			IUserManager $userManager,
112
			IManager $contactsManager,
113
			IConfig $config,
114
			IUserSession $userSession,
115
			IURLGenerator $urlGenerator,
116
			ILogger $logger,
117
			\OCP\Share\IManager $shareManager) {
118
		parent::__construct($appName, $request);
119
120
		$this->groupManager = $groupManager;
121
		$this->userManager = $userManager;
122
		$this->contactsManager = $contactsManager;
123
		$this->config = $config;
124
		$this->userSession = $userSession;
125
		$this->urlGenerator = $urlGenerator;
126
		$this->request = $request;
127
		$this->logger = $logger;
128
		$this->shareManager = $shareManager;
129
	}
130
131
	/**
132
	 * @param string $search