Code Duplication    Length = 19-21 lines in 4 locations

lib/private/Template/JSConfigHelper.php 1 location

@@ 75-93 (lines=19) @@
72
	 * @param IniGetWrapper $iniWrapper
73
	 * @param IURLGenerator $urlGenerator
74
	 */
75
	public function __construct(IL10N $l,
76
								Defaults $defaults,
77
								IAppManager $appManager,
78
								ISession $session,
79
								$currentUser,
80
								IConfig $config,
81
								IGroupManager $groupManager,
82
								IniGetWrapper $iniWrapper,
83
								IURLGenerator $urlGenerator) {
84
		$this->l = $l;
85
		$this->defaults = $defaults;
86
		$this->appManager = $appManager;
87
		$this->session = $session;
88
		$this->currentUser = $currentUser;
89
		$this->config = $config;
90
		$this->groupManager = $groupManager;
91
		$this->iniWrapper = $iniWrapper;
92
		$this->urlGenerator = $urlGenerator;
93
	}
94
95
	public function getConfig() {
96

apps/systemtags/lib/Activity/Listener.php 1 location

@@ 77-95 (lines=19) @@
74
	 * @param IRootFolder $rootFolder
75
	 * @param IShareHelper $shareHelper
76
	 */
77
	public function __construct(IGroupManager $groupManager,
78
								IManager $activityManager,
79
								IUserSession $session,
80
								IConfig $config,
81
								ISystemTagManager $tagManager,
82
								IAppManager $appManager,
83
								IMountProviderCollection $mountCollection,
84
								IRootFolder $rootFolder,
85
								IShareHelper $shareHelper) {
86
		$this->groupManager = $groupManager;
87
		$this->activityManager = $activityManager;
88
		$this->session = $session;
89
		$this->config = $config;
90
		$this->tagManager = $tagManager;
91
		$this->appManager = $appManager;
92
		$this->mountCollection = $mountCollection;
93
		$this->rootFolder = $rootFolder;
94
		$this->shareHelper = $shareHelper;
95
	}
96
97
	/**
98
	 * @param ManagerEvent $event

apps/files/lib/Controller/ViewController.php 1 location

@@ 81-101 (lines=21) @@
78
	 * @param IAppManager $appManager
79
	 * @param IRootFolder $rootFolder
80
	 */
81
	public function __construct($appName,
82
								IRequest $request,
83
								IURLGenerator $urlGenerator,
84
								IL10N $l10n,
85
								IConfig $config,
86
								EventDispatcherInterface $eventDispatcherInterface,
87
								IUserSession $userSession,
88
								IAppManager $appManager,
89
								IRootFolder $rootFolder
90
	) {
91
		parent::__construct($appName, $request);
92
		$this->appName = $appName;
93
		$this->request = $request;
94
		$this->urlGenerator = $urlGenerator;
95
		$this->l10n = $l10n;
96
		$this->config = $config;
97
		$this->eventDispatcher = $eventDispatcherInterface;
98
		$this->userSession = $userSession;
99
		$this->appManager = $appManager;
100
		$this->rootFolder = $rootFolder;
101
	}
102
103
	/**
104
	 * @param string $appName

settings/Controller/AppSettingsController.php 1 location

@@ 85-104 (lines=20) @@
82
	 * @param IFactory $l10nFactory
83
	 * @param BundleFetcher $bundleFetcher
84
	 */
85
	public function __construct($appName,
86
								IRequest $request,
87
								IL10N $l10n,
88
								IConfig $config,
89
								INavigationManager $navigationManager,
90
								IAppManager $appManager,
91
								CategoryFetcher $categoryFetcher,
92
								AppFetcher $appFetcher,
93
								IFactory $l10nFactory,
94
								BundleFetcher $bundleFetcher) {
95
		parent::__construct($appName, $request);
96
		$this->l10n = $l10n;
97
		$this->config = $config;
98
		$this->navigationManager = $navigationManager;
99
		$this->appManager = $appManager;
100
		$this->categoryFetcher = $categoryFetcher;
101
		$this->appFetcher = $appFetcher;
102
		$this->l10nFactory = $l10nFactory;
103
		$this->bundleFetcher = $bundleFetcher;
104
	}
105
106
	/**
107
	 * @NoCSRFRequired