Code Duplication    Length = 26-31 lines in 2 locations

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

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

core/Controller/LostController.php 1 location

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