Code Duplication    Length = 19-25 lines in 6 locations

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

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

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

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

lib/private/Template/JSConfigHelper.php 1 location

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

settings/Controller/AppSettingsController.php 1 location

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

core/Controller/LoginController.php 1 location

@@ 92-113 (lines=22) @@
89
	 * @param Defaults $defaults
90
	 * @param Throttler $throttler
91
	 */
92
	public function __construct($appName,
93
								IRequest $request,
94
								IUserManager $userManager,
95
								IConfig $config,
96
								ISession $session,
97
								IUserSession $userSession,
98
								IURLGenerator $urlGenerator,
99
								ILogger $logger,
100
								Manager $twoFactorManager,
101
								Defaults $defaults,
102
								Throttler $throttler) {
103
		parent::__construct($appName, $request);
104
		$this->userManager = $userManager;
105
		$this->config = $config;
106
		$this->session = $session;
107
		$this->userSession = $userSession;
108
		$this->urlGenerator = $urlGenerator;
109
		$this->logger = $logger;
110
		$this->twoFactorManager = $twoFactorManager;
111
		$this->defaults = $defaults;
112
		$this->throttler = $throttler;
113
	}
114
115
	/**
116
	 * @NoAdminRequired

apps/provisioning_api/lib/Controller/UsersController.php 1 location

@@ 89-113 (lines=25) @@
86
	 * @param NewUserMailHelper $newUserMailHelper
87
	 * @param FederatedFileSharingFactory $federatedFileSharingFactory
88
	 */
89
	public function __construct($appName,
90
								IRequest $request,
91
								IUserManager $userManager,
92
								IConfig $config,
93
								IAppManager $appManager,
94
								IGroupManager $groupManager,
95
								IUserSession $userSession,
96
								AccountManager $accountManager,
97
								ILogger $logger,
98
								IFactory $l10nFactory,
99
								NewUserMailHelper $newUserMailHelper,
100
								FederatedFileSharingFactory $federatedFileSharingFactory) {
101
		parent::__construct($appName, $request);
102
103
		$this->userManager = $userManager;
104
		$this->config = $config;
105
		$this->appManager = $appManager;
106
		$this->groupManager = $groupManager;
107
		$this->userSession = $userSession;
108
		$this->accountManager = $accountManager;
109
		$this->logger = $logger;
110
		$this->l10nFactory = $l10nFactory;
111
		$this->newUserMailHelper = $newUserMailHelper;
112
		$this->federatedFileSharingFactory = $federatedFileSharingFactory;
113
	}
114
115
	/**
116
	 * @NoAdminRequired