Code Duplication    Length = 17-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/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

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

core/Controller/AvatarController.php 1 location

@@ 92-112 (lines=21) @@
89
	 * @param string $userId
90
	 * @param TimeFactory $timeFactory
91
	 */
92
	public function __construct($appName,
93
								IRequest $request,
94
								IAvatarManager $avatarManager,
95
								ICache $cache,
96
								IL10N $l10n,
97
								IUserManager $userManager,
98
								IRootFolder $rootFolder,
99
								ILogger $logger,
100
								$userId,
101
								TimeFactory $timeFactory) {
102
		parent::__construct($appName, $request);
103
104
		$this->avatarManager = $avatarManager;
105
		$this->cache = $cache;
106
		$this->l = $l10n;
107
		$this->userManager = $userManager;
108
		$this->rootFolder = $rootFolder;
109
		$this->logger = $logger;
110
		$this->userId = $userId;
111
		$this->timeFactory = $timeFactory;
112
	}
113
114
	/**
115
	 * @NoAdminRequired