Code Duplication    Length = 24-29 lines in 2 locations

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

@@ 105-133 (lines=29) @@
102
	 * @param IAppManager $appManager
103
	 * @param ImageManager $imageManager
104
	 */
105
	public function __construct(
106
		$appName,
107
		IRequest $request,
108
		IConfig $config,
109
		ThemingDefaults $themingDefaults,
110
		Util $util,
111
		ITimeFactory $timeFactory,
112
		IL10N $l,
113
		ITempManager $tempManager,
114
		IAppData $appData,
115
		SCSSCacher $scssCacher,
116
		IURLGenerator $urlGenerator,
117
		IAppManager $appManager,
118
		ImageManager $imageManager
119
	) {
120
		parent::__construct($appName, $request);
121
122
		$this->themingDefaults = $themingDefaults;
123
		$this->util = $util;
124
		$this->timeFactory = $timeFactory;
125
		$this->l10n = $l;
126
		$this->config = $config;
127
		$this->tempManager = $tempManager;
128
		$this->appData = $appData;
129
		$this->scssCacher = $scssCacher;
130
		$this->urlGenerator = $urlGenerator;
131
		$this->appManager = $appManager;
132
		$this->imageManager = $imageManager;
133
	}
134
135
	/**
136
	 * @param string $setting

settings/Controller/AppSettingsController.php 1 location

@@ 98-121 (lines=24) @@
95
	 * @param Installer $installer
96
	 * @param IURLGenerator $urlGenerator
97
	 */
98
	public function __construct(string $appName,
99
								IRequest $request,
100
								IL10N $l10n,
101
								IConfig $config,
102
								INavigationManager $navigationManager,
103
								IAppManager $appManager,
104
								CategoryFetcher $categoryFetcher,
105
								AppFetcher $appFetcher,
106
								IFactory $l10nFactory,
107
								BundleFetcher $bundleFetcher,
108
								Installer $installer,
109
								IURLGenerator $urlGenerator) {
110
		parent::__construct($appName, $request);
111
		$this->l10n = $l10n;
112
		$this->config = $config;
113
		$this->navigationManager = $navigationManager;
114
		$this->appManager = $appManager;
115
		$this->categoryFetcher = $categoryFetcher;
116
		$this->appFetcher = $appFetcher;
117
		$this->l10nFactory = $l10nFactory;
118
		$this->bundleFetcher = $bundleFetcher;
119
		$this->installer = $installer;
120
		$this->urlGenerator = $urlGenerator;
121
	}
122
123
	/**
124
	 * @NoCSRFRequired