Code Duplication    Length = 18-23 lines in 2 locations

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

@@ 90-112 (lines=23) @@
87
	 * @param IAppData $appData
88
	 * @param SCSSCacher $scssCacher
89
	 */
90
	public function __construct(
91
		$appName,
92
		IRequest $request,
93
		IConfig $config,
94
		ThemingDefaults $themingDefaults,
95
		Util $util,
96
		ITimeFactory $timeFactory,
97
		IL10N $l,
98
		ITempManager $tempManager,
99
		IAppData $appData,
100
		SCSSCacher $scssCacher
101
	) {
102
		parent::__construct($appName, $request);
103
104
		$this->themingDefaults = $themingDefaults;
105
		$this->util = $util;
106
		$this->timeFactory = $timeFactory;
107
		$this->l10n = $l;
108
		$this->config = $config;
109
		$this->tempManager = $tempManager;
110
		$this->appData = $appData;
111
		$this->scssCacher = $scssCacher;
112
	}
113
114
	/**
115
	 * @param string $setting

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