Code Duplication    Length = 15-21 lines in 4 locations

apps/federation/lib/TrustedServers.php 1 location

@@ 80-96 (lines=17) @@
77
	 * @param IConfig $config
78
	 * @param EventDispatcherInterface $dispatcher
79
	 */
80
	public function __construct(
81
		DbHandler $dbHandler,
82
		IClientService $httpClientService,
83
		ILogger $logger,
84
		IJobList $jobList,
85
		ISecureRandom $secureRandom,
86
		IConfig $config,
87
		EventDispatcherInterface $dispatcher
88
	) {
89
		$this->dbHandler = $dbHandler;
90
		$this->httpClientService = $httpClientService;
91
		$this->logger = $logger;
92
		$this->jobList = $jobList;
93
		$this->secureRandom = $secureRandom;
94
		$this->config = $config;
95
		$this->dispatcher = $dispatcher;
96
	}
97
98
	/**
99
	 * add server to the list of trusted servers

apps/lookup_server_connector/lib/UpdateLookupServer.php 1 location

@@ 67-81 (lines=15) @@
64
	 * @param Signer $signer
65
	 * @param IJobList $jobList
66
	 */
67
	public function __construct(AccountManager $accountManager,
68
								IConfig $config,
69
								ISecureRandom $secureRandom,
70
								IClientService $clientService,
71
								Manager $manager,
72
								Signer $signer,
73
								IJobList $jobList) {
74
		$this->accountManager = $accountManager;
75
		$this->config = $config;
76
		$this->secureRandom = $secureRandom;
77
		$this->clientService = $clientService;
78
		$this->keyManager = $manager;
79
		$this->signer = $signer;
80
		$this->jobList = $jobList;
81
	}
82
83
	/**
84
	 * @param IUser $user

apps/updatenotification/lib/Controller/AdminController.php 1 location

@@ 66-83 (lines=18) @@
63
	 * @param UpdateChecker $updateChecker
64
	 * @param IDateTimeFormatter $dateTimeFormatter
65
	 */
66
	public function __construct($appName,
67
								IRequest $request,
68
								IJobList $jobList,
69
								ISecureRandom $secureRandom,
70
								IConfig $config,
71
								ITimeFactory $timeFactory,
72
								IL10N $l10n,
73
								UpdateChecker $updateChecker,
74
								IDateTimeFormatter $dateTimeFormatter) {
75
		parent::__construct($appName, $request);
76
		$this->jobList = $jobList;
77
		$this->secureRandom = $secureRandom;
78
		$this->config = $config;
79
		$this->timeFactory = $timeFactory;
80
		$this->l10n = $l10n;
81
		$this->updateChecker = $updateChecker;
82
		$this->dateTimeFormatter = $dateTimeFormatter;
83
	}
84
85
	/**
86
	 * @return TemplateResponse

apps/theming/lib/Controller/ThemingController.php 1 location

@@ 83-103 (lines=21) @@
80
	 * @param ITempManager $tempManager
81
	 * @param IAppData $appData
82
	 */
83
	public function __construct(
84
		$appName,
85
		IRequest $request,
86
		IConfig $config,
87
		ThemingDefaults $template,
88
		Util $util,
89
		ITimeFactory $timeFactory,
90
		IL10N $l,
91
		ITempManager $tempManager,
92
		IAppData $appData
93
	) {
94
		parent::__construct($appName, $request);
95
96
		$this->template = $template;
97
		$this->util = $util;
98
		$this->timeFactory = $timeFactory;
99
		$this->l = $l;
100
		$this->config = $config;
101
		$this->tempManager = $tempManager;
102
		$this->appData = $appData;
103
	}
104
105
	/**
106
	 * @param string $setting