Code Duplication    Length = 26-28 lines in 4 locations

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

@@ 102-128 (lines=27) @@
99
	 * @param IAppManager $appManager
100
	 * @param ImageManager $imageManager
101
	 */
102
	public function __construct(
103
		$appName,
104
		IRequest $request,
105
		IConfig $config,
106
		ThemingDefaults $themingDefaults,
107
		Util $util,
108
		IL10N $l,
109
		ITempManager $tempManager,
110
		IAppData $appData,
111
		SCSSCacher $scssCacher,
112
		IURLGenerator $urlGenerator,
113
		IAppManager $appManager,
114
		ImageManager $imageManager
115
	) {
116
		parent::__construct($appName, $request);
117
118
		$this->themingDefaults = $themingDefaults;
119
		$this->util = $util;
120
		$this->l10n = $l;
121
		$this->config = $config;
122
		$this->tempManager = $tempManager;
123
		$this->appData = $appData;
124
		$this->scssCacher = $scssCacher;
125
		$this->urlGenerator = $urlGenerator;
126
		$this->appManager = $appManager;
127
		$this->imageManager = $imageManager;
128
	}
129
130
	/**
131
	 * @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

settings/Controller/CheckSetupController.php 1 location

@@ 85-110 (lines=26) @@
82
	/** @var IDateTimeFormatter */
83
	private $dateTimeFormatter;
84
85
	public function __construct($AppName,
86
								IRequest $request,
87
								IConfig $config,
88
								IClientService $clientService,
89
								IURLGenerator $urlGenerator,
90
								\OC_Util $util,
91
								IL10N $l10n,
92
								Checker $checker,
93
								ILogger $logger,
94
								EventDispatcherInterface $dispatcher,
95
								IDBConnection $db,
96
								ILockingProvider $lockingProvider,
97
								IDateTimeFormatter $dateTimeFormatter) {
98
		parent::__construct($AppName, $request);
99
		$this->config = $config;
100
		$this->clientService = $clientService;
101
		$this->util = $util;
102
		$this->urlGenerator = $urlGenerator;
103
		$this->l10n = $l10n;
104
		$this->checker = $checker;
105
		$this->logger = $logger;
106
		$this->dispatcher = $dispatcher;
107
		$this->db = $db;
108
		$this->lockingProvider = $lockingProvider;
109
		$this->dateTimeFormatter = $dateTimeFormatter;
110
	}
111
112
	/**
113
	 * Checks if the server can connect to the internet using HTTPS and HTTP

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

@@ 108-135 (lines=28) @@
105
	 * @param IAppManager $appManager
106
	 * @param IServerContainer $serverContainer
107
	 */
108
	public function __construct(
109
		string $appName,
110
		IRequest $request,
111
		IManager $shareManager,
112
		IGroupManager $groupManager,
113
		IUserManager $userManager,
114
		IRootFolder $rootFolder,
115
		IURLGenerator $urlGenerator,
116
		string $userId,
117
		IL10N $l10n,
118
		IConfig $config,
119
		IAppManager $appManager,
120
		IServerContainer $serverContainer
121
	) {
122
		parent::__construct($appName, $request);
123
124
		$this->shareManager = $shareManager;
125
		$this->userManager = $userManager;
126
		$this->groupManager = $groupManager;
127
		$this->request = $request;
128
		$this->rootFolder = $rootFolder;
129
		$this->urlGenerator = $urlGenerator;
130
		$this->currentUser = $userId;
131
		$this->l = $l10n;
132
		$this->config = $config;
133
		$this->appManager = $appManager;
134
		$this->serverContainer = $serverContainer;
135
	}
136
137
	/**
138
	 * Convert an IShare to an array for OCS output