Code Duplication    Length = 19-21 lines in 3 locations

apps/files_sharing/api/sharees.php 1 location

@@ 105-123 (lines=19) @@
102
	 * @param ILogger $logger
103
	 * @param \OCP\Share\IManager $shareManager
104
	 */
105
	public function __construct(IGroupManager $groupManager,
106
								IUserManager $userManager,
107
								IManager $contactsManager,
108
								IConfig $config,
109
								IUserSession $userSession,
110
								IURLGenerator $urlGenerator,
111
								IRequest $request,
112
								ILogger $logger,
113
								\OCP\Share\IManager $shareManager) {
114
		$this->groupManager = $groupManager;
115
		$this->userManager = $userManager;
116
		$this->contactsManager = $contactsManager;
117
		$this->config = $config;
118
		$this->userSession = $userSession;
119
		$this->urlGenerator = $urlGenerator;
120
		$this->request = $request;
121
		$this->logger = $logger;
122
		$this->shareManager = $shareManager;
123
	}
124
125
	/**
126
	 * @param string $search

apps/files_sharing/api/share20ocs.php 1 location

@@ 73-91 (lines=19) @@
70
	 * @param IURLGenerator $urlGenerator
71
	 * @param IUser $currentUser
72
	 */
73
	public function __construct(
74
			IManager $shareManager,
75
			IGroupManager $groupManager,
76
			IUserManager $userManager,
77
			IRequest $request,
78
			IRootFolder $rootFolder,
79
			IURLGenerator $urlGenerator,
80
			IUser $currentUser,
81
			IL10N $l10n
82
	) {
83
		$this->shareManager = $shareManager;
84
		$this->userManager = $userManager;
85
		$this->groupManager = $groupManager;
86
		$this->request = $request;
87
		$this->rootFolder = $rootFolder;
88
		$this->urlGenerator = $urlGenerator;
89
		$this->currentUser = $currentUser;
90
		$this->l = $l10n;
91
	}
92
93
	/**
94
	 * Convert an IShare to an array for OCS output

apps/files/controller/viewcontroller.php 1 location

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