Code Duplication    Length = 9-22 lines in 4 locations

apps/encryption/lib/Controller/SettingsController.php 1 location

@@ 77-97 (lines=21) @@
74
	 * @param ISession $ocSession
75
	 * @param Util $util
76
	 */
77
	public function __construct($AppName,
78
								IRequest $request,
79
								IL10N $l10n,
80
								IUserManager $userManager,
81
								IUserSession $userSession,
82
								KeyManager $keyManager,
83
								Crypt $crypt,
84
								Session $session,
85
								ISession $ocSession,
86
								Util $util
87
) {
88
		parent::__construct($AppName, $request);
89
		$this->l = $l10n;
90
		$this->userSession = $userSession;
91
		$this->userManager = $userManager;
92
		$this->keyManager = $keyManager;
93
		$this->crypt = $crypt;
94
		$this->session = $session;
95
		$this->ocSession = $ocSession;
96
		$this->util = $util;
97
	}
98
99
100
	/**

apps/user_ldap/lib/Controller/RenewPasswordController.php 1 location

@@ 57-65 (lines=9) @@
54
	 * @param IConfig $config
55
	 * @param IURLGenerator $urlGenerator
56
	 */
57
	function __construct($appName, IRequest $request, IUserManager $userManager, 
58
		IConfig $config, IL10N $l10n, ISession $session, IURLGenerator $urlGenerator) {
59
		parent::__construct($appName, $request);
60
		$this->userManager = $userManager;
61
		$this->config = $config;
62
		$this->l10n = $l10n;
63
		$this->session = $session;
64
		$this->urlGenerator = $urlGenerator;
65
	}
66
67
	/**
68
	 * @PublicPage

apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php 1 location

@@ 99-120 (lines=22) @@
96
	 * @param IClientService $clientService
97
	 * @param ICloudIdManager $cloudIdManager
98
	 */
99
	public function __construct($appName,
100
								IRequest $request,
101
								FederatedShareProvider $federatedShareProvider,
102
								IManager $shareManager,
103
								AddressHandler $addressHandler,
104
								ISession $session,
105
								IL10N $l,
106
								IUserSession $userSession,
107
								IClientService $clientService,
108
								ICloudIdManager $cloudIdManager
109
	) {
110
		parent::__construct($appName, $request);
111
112
		$this->federatedShareProvider = $federatedShareProvider;
113
		$this->shareManager = $shareManager;
114
		$this->addressHandler = $addressHandler;
115
		$this->session = $session;
116
		$this->l = $l;
117
		$this->userSession = $userSession;
118
		$this->clientService = $clientService;
119
		$this->cloudIdManager = $cloudIdManager;
120
	}
121
122
	/**
123
	 * send federated share to a user of a public link

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

@@ 95-109 (lines=15) @@
92
	 * @param IManager $shareManager
93
	 * @param ISearch $collaboratorSearch
94
	 */
95
	public function __construct(
96
		string $appName,
97
		IRequest $request,
98
		IConfig $config,
99
		IURLGenerator $urlGenerator,
100
		IManager $shareManager,
101
		ISearch $collaboratorSearch
102
	) {
103
		parent::__construct($appName, $request);
104
105
		$this->config = $config;
106
		$this->urlGenerator = $urlGenerator;
107
		$this->shareManager = $shareManager;
108
		$this->collaboratorSearch = $collaboratorSearch;
109
	}
110
111
	/**
112
	 * @NoAdminRequired