Code Duplication    Length = 17-22 lines in 5 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/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

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

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

@@ 87-108 (lines=22) @@
84
	 * @param string $userId
85
	 * @param IL10N $l10n
86
	 */
87
	public function __construct(
88
		$appName,
89
		IRequest $request,
90
		IManager $shareManager,
91
		IGroupManager $groupManager,
92
		IUserManager $userManager,
93
		IRootFolder $rootFolder,
94
		IURLGenerator $urlGenerator,
95
		$userId,
96
		IL10N $l10n
97
	) {
98
		parent::__construct($appName, $request);
99
100
		$this->shareManager = $shareManager;
101
		$this->userManager = $userManager;
102
		$this->groupManager = $groupManager;
103
		$this->request = $request;
104
		$this->rootFolder = $rootFolder;
105
		$this->urlGenerator = $urlGenerator;
106
		$this->currentUser = $userId;
107
		$this->l = $l10n;
108
	}
109
110
	/**
111
	 * Convert an IShare to an array for OCS output

lib/private/Template/JSConfigHelper.php 1 location

@@ 69-85 (lines=17) @@
66
	 * @param IniGetWrapper $iniWrapper
67
	 * @param IURLGenerator $urlGenerator
68
	 */
69
	public function __construct(IL10N $l,
70
								\OC_Defaults $defaults,
71
								IAppManager $appManager,
72
								$currentUser,
73
								IConfig $config,
74
								IGroupManager $groupManager,
75
								IniGetWrapper $iniWrapper,
76
								IURLGenerator $urlGenerator) {
77
		$this->l = $l;
78
		$this->defaults = $defaults;
79
		$this->appManager = $appManager;
80
		$this->currentUser = $currentUser;
81
		$this->config = $config;
82
		$this->groupManager = $groupManager;
83
		$this->iniWrapper = $iniWrapper;
84
		$this->urlGenerator = $urlGenerator;
85
	}
86
87
	public function getConfig() {
88