Code Duplication    Length = 18-25 lines in 3 locations

lib/Service/CirclesService.php 1 location

@@ 104-128 (lines=25) @@
101
	 * @param CircleProviderRequest $circleProviderRequest
102
	 * @param MiscService $miscService
103
	 */
104
	public function __construct(
105
		$userId,
106
		IL10N $l10n,
107
		IGroupManager $groupManager,
108
		ConfigService $configService,
109
		CirclesRequest $circlesRequest,
110
		MembersRequest $membersRequest,
111
		SharesRequest $sharesRequest,
112
		FederatedLinksRequest $federatedLinksRequest,
113
		EventsService $eventsService,
114
		CircleProviderRequest $circleProviderRequest,
115
		MiscService $miscService
116
	) {
117
		$this->userId = $userId;
118
		$this->l10n = $l10n;
119
		$this->groupManager = $groupManager;
120
		$this->configService = $configService;
121
		$this->circlesRequest = $circlesRequest;
122
		$this->membersRequest = $membersRequest;
123
		$this->sharesRequest = $sharesRequest;
124
		$this->federatedLinksRequest = $federatedLinksRequest;
125
		$this->eventsService = $eventsService;
126
		$this->circleProviderRequest = $circleProviderRequest;
127
		$this->miscService = $miscService;
128
	}
129
130
131
	/**

lib/Service/EventsService.php 1 location

@@ 99-116 (lines=18) @@
96
	 * @param ConfigService $configService
97
	 * @param MiscService $miscService
98
	 */
99
	public function __construct(
100
		$userId, ITimeFactory $time, IActivityManager $activityManager,
101
		INotificationManager $notificationManager, IUserManager $userManager, IURLGenerator $urlGenerator,
102
		EventDispatcher $eventDispatcher, CirclesRequest $circlesRequest, MembersRequest $membersRequest,
103
		ConfigService $configService, MiscService $miscService
104
	) {
105
		$this->userId = $userId;
106
		$this->time = $time;
107
		$this->activityManager = $activityManager;
108
		$this->notificationManager = $notificationManager;
109
		$this->userManager = $userManager;
110
		$this->urlGenerator = $urlGenerator;
111
		$this->eventDispatcher = $eventDispatcher;
112
		$this->circlesRequest = $circlesRequest;
113
		$this->membersRequest = $membersRequest;
114
		$this->configService = $configService;
115
		$this->miscService = $miscService;
116
	}
117
118
119
	/**

lib/Service/MembersService.php 1 location

@@ 114-132 (lines=19) @@
111
	 * @param FileSharingBroadcaster $fileSharingBroadcaster
112
	 * @param MiscService $miscService
113
	 */
114
	public function __construct(
115
		$userId, IL10N $l10n, IUserManager $userManager, ConfigService $configService,
116
		CirclesRequest $circlesRequest, MembersRequest $membersRequest, SharesRequest $sharesRequest,
117
		TokensRequest $tokensRequest, CirclesService $circlesService, EventsService $eventsService,
118
		FileSharingBroadcaster $fileSharingBroadcaster, MiscService $miscService
119
	) {
120
		$this->userId = $userId;
121
		$this->l10n = $l10n;
122
		$this->userManager = $userManager;
123
		$this->configService = $configService;
124
		$this->circlesRequest = $circlesRequest;
125
		$this->membersRequest = $membersRequest;
126
		$this->sharesRequest = $sharesRequest;
127
		$this->tokensRequest = $tokensRequest;
128
		$this->circlesService = $circlesService;
129
		$this->eventsService = $eventsService;
130
		$this->fileSharingBroadcaster = $fileSharingBroadcaster;
131
		$this->miscService = $miscService;
132
	}
133
134
135
	/**