Code Duplication    Length = 19-19 lines in 2 locations

lib/Service/MembersService.php 1 location

@@ 81-99 (lines=19) @@
78
	 * @param EventsService $eventsService
79
	 * @param MiscService $miscService
80
	 */
81
	public function __construct(
82
		$userId, IL10N $l10n, IUserManager $userManager, ConfigService $configService,
83
		CirclesRequest $circlesRequest, MembersRequest $membersRequest, EventsService $eventsService,
84
		MiscService $miscService
85
	) {
86
		$this->userId = $userId;
87
		$this->l10n = $l10n;
88
		$this->userManager = $userManager;
89
		$this->configService = $configService;
90
		$this->circlesRequest = $circlesRequest;
91
		$this->membersRequest = $membersRequest;
92
		$this->eventsService = $eventsService;
93
		$this->miscService = $miscService;
94
	}
95
96
97
	/**
98
	 * addMember();
99
	 *
100
	 * add a new member to a circle.
101
	 *
102
	 * @param string $circleUniqueId

lib/Service/CirclesService.php 1 location

@@ 82-100 (lines=19) @@
79
	 * @param EventsService $eventsService
80
	 * @param MiscService $miscService
81
	 */
82
	public function __construct(
83
		$userId,
84
		IL10N $l10n,
85
		ConfigService $configService,
86
		CirclesRequest $circlesRequest,
87
		MembersRequest $membersRequest,
88
		FederatedLinksRequest $federatedLinksRequest,
89
		EventsService $eventsService,
90
		MiscService $miscService
91
	) {
92
		$this->userId = $userId;
93
		$this->l10n = $l10n;
94
		$this->configService = $configService;
95
		$this->circlesRequest = $circlesRequest;
96
		$this->membersRequest = $membersRequest;
97
		$this->federatedLinksRequest = $federatedLinksRequest;
98
		$this->eventsService = $eventsService;
99
		$this->miscService = $miscService;
100
	}
101
102
103
	/**