Code Duplication    Length = 9-22 lines in 7 locations

apps/dav/lib/Connector/Sabre/ServerFactory.php 1 location

@@ 72-90 (lines=19) @@
69
	 * @param IRequest $request
70
	 * @param IPreview $previewManager
71
	 */
72
	public function __construct(
73
		IConfig $config,
74
		ILogger $logger,
75
		IDBConnection $databaseConnection,
76
		IUserSession $userSession,
77
		IMountManager $mountManager,
78
		ITagManager $tagManager,
79
		IRequest $request,
80
		IPreview $previewManager
81
	) {
82
		$this->config = $config;
83
		$this->logger = $logger;
84
		$this->databaseConnection = $databaseConnection;
85
		$this->userSession = $userSession;
86
		$this->mountManager = $mountManager;
87
		$this->tagManager = $tagManager;
88
		$this->request = $request;
89
		$this->previewManager = $previewManager;
90
	}
91
92
	/**
93
	 * @param string $baseUri

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
	/**

core/Controller/LoginController.php 1 location

@@ 78-95 (lines=18) @@
75
	 * @param ILogger $logger
76
	 * @param Manager $twoFactorManager
77
	 */
78
	public function __construct($appName,
79
						 IRequest $request,
80
						 IUserManager $userManager,
81
						 IConfig $config,
82
						 ISession $session,
83
						 IUserSession $userSession,
84
						 IURLGenerator $urlGenerator,
85
						 ILogger $logger,
86
						 Manager $twoFactorManager) {
87
		parent::__construct($appName, $request);
88
		$this->userManager = $userManager;
89
		$this->config = $config;
90
		$this->session = $session;
91
		$this->userSession = $userSession;
92
		$this->urlGenerator = $urlGenerator;
93
		$this->logger = $logger;
94
		$this->twoFactorManager = $twoFactorManager;
95
	}
96
97
	/**
98
	 * @NoAdminRequired

settings/Controller/CheckSetupController.php 1 location

@@ 75-92 (lines=18) @@
72
	 * @param Checker $checker
73
	 * @param ILogger $logger
74
	 */
75
	public function __construct($AppName,
76
								IRequest $request,
77
								IConfig $config,
78
								IClientService $clientService,
79
								IURLGenerator $urlGenerator,
80
								\OC_Util $util,
81
								IL10N $l10n,
82
								Checker $checker,
83
								ILogger $logger) {
84
		parent::__construct($AppName, $request);
85
		$this->config = $config;
86
		$this->clientService = $clientService;
87
		$this->util = $util;
88
		$this->urlGenerator = $urlGenerator;
89
		$this->l10n = $l10n;
90
		$this->checker = $checker;
91
		$this->logger = $logger;
92
	}
93
94
	/**
95
	 * Checks if the ownCloud server can connect to the internet using HTTPS and HTTP

settings/Controller/EncryptionController.php 1 location

@@ 70-85 (lines=16) @@
67
	 * @param View $view
68
	 * @param ILogger $logger
69
	 */
70
	public function __construct($appName,
71
								IRequest $request,
72
								IL10N $l10n,
73
								IConfig $config,
74
								IDBConnection $connection,
75
								IUserManager $userManager,
76
								View $view,
77
								ILogger  $logger) {
78
		parent::__construct($appName, $request);
79
		$this->l10n = $l10n;
80
		$this->config = $config;
81
		$this->connection = $connection;
82
		$this->view = $view;
83
		$this->userManager = $userManager;
84
		$this->logger = $logger;
85
	}
86
87
	/**
88
	 * @param IConfig $config

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

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

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

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