Code Duplication    Length = 19-24 lines in 4 locations

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

@@ 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

lib/private/Template/JSConfigHelper.php 1 location

@@ 85-105 (lines=21) @@
82
	 * @param IURLGenerator $urlGenerator
83
	 * @param CapabilitiesManager $capabilitiesManager
84
	 */
85
	public function __construct(IL10N $l,
86
								Defaults $defaults,
87
								IAppManager $appManager,
88
								ISession $session,
89
								$currentUser,
90
								IConfig $config,
91
								IGroupManager $groupManager,
92
								IniGetWrapper $iniWrapper,
93
								IURLGenerator $urlGenerator,
94
								CapabilitiesManager $capabilitiesManager) {
95
		$this->l = $l;
96
		$this->defaults = $defaults;
97
		$this->appManager = $appManager;
98
		$this->session = $session;
99
		$this->currentUser = $currentUser;
100
		$this->config = $config;
101
		$this->groupManager = $groupManager;
102
		$this->iniWrapper = $iniWrapper;
103
		$this->urlGenerator = $urlGenerator;
104
		$this->capabilitiesManager = $capabilitiesManager;
105
	}
106
107
	public function getConfig() {
108

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

@@ 97-120 (lines=24) @@
94
	 * @param IL10N $l10n
95
	 * @param IConfig $config
96
	 */
97
	public function __construct(
98
		$appName,
99
		IRequest $request,
100
		IManager $shareManager,
101
		IGroupManager $groupManager,
102
		IUserManager $userManager,
103
		IRootFolder $rootFolder,
104
		IURLGenerator $urlGenerator,
105
		$userId,
106
		IL10N $l10n,
107
		IConfig $config
108
	) {
109
		parent::__construct($appName, $request);
110
111
		$this->shareManager = $shareManager;
112
		$this->userManager = $userManager;
113
		$this->groupManager = $groupManager;
114
		$this->request = $request;
115
		$this->rootFolder = $rootFolder;
116
		$this->urlGenerator = $urlGenerator;
117
		$this->currentUser = $userId;
118
		$this->l = $l10n;
119
		$this->config = $config;
120
	}
121
122
	/**
123
	 * Convert an IShare to an array for OCS output