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

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