Code Duplication    Length = 16-21 lines in 3 locations

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

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

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

@@ 83-102 (lines=20) @@
80
	 * @param IUserSession $userSession
81
	 * @param IClientService $clientService
82
	 */
83
	public function __construct($appName,
84
								IRequest $request,
85
								FederatedShareProvider $federatedShareProvider,
86
								IManager $shareManager,
87
								AddressHandler $addressHandler,
88
								ISession $session,
89
								IL10N $l,
90
								IUserSession $userSession,
91
								IClientService $clientService
92
	) {
93
		parent::__construct($appName, $request);
94
95
		$this->federatedShareProvider = $federatedShareProvider;
96
		$this->shareManager = $shareManager;
97
		$this->addressHandler = $addressHandler;
98
		$this->session = $session;
99
		$this->l = $l;
100
		$this->userSession = $userSession;
101
		$this->clientService = $clientService;
102
	}
103
104
	/**
105
	 * send federated share to a user of a public link

apps/federatedfilesharing/lib/RequestHandler.php 1 location

@@ 81-96 (lines=16) @@
78
	 * @param AddressHandler $addressHandler
79
	 * @param IUserManager $userManager
80
	 */
81
	public function __construct(FederatedShareProvider $federatedShareProvider,
82
								IDBConnection $connection,
83
								Share\IManager $shareManager,
84
								IRequest $request,
85
								Notifications $notifications,
86
								AddressHandler $addressHandler,
87
								IUserManager $userManager
88
	) {
89
		$this->federatedShareProvider = $federatedShareProvider;
90
		$this->connection = $connection;
91
		$this->shareManager = $shareManager;
92
		$this->request = $request;
93
		$this->notifications = $notifications;
94
		$this->addressHandler = $addressHandler;
95
		$this->userManager = $userManager;
96
	}
97
98
	/**
99
	 * create a new share