Code Duplication    Length = 15-17 lines in 2 locations

lib/Service/CirclesService.php 1 location

@@ 67-81 (lines=15) @@
64
	 * @param DatabaseService $databaseService
65
	 * @param MiscService $miscService
66
	 */
67
	public function __construct(
68
		$userId,
69
		IL10N $l10n,
70
		ConfigService $configService,
71
		DatabaseService $databaseService,
72
		MiscService $miscService
73
	) {
74
		$this->userId = $userId;
75
		$this->l10n = $l10n;
76
		$this->configService = $configService;
77
		$this->miscService = $miscService;
78
79
		$this->dbCircles = $databaseService->getCirclesMapper();
80
		$this->dbMembers = $databaseService->getMembersMapper();
81
	}
82
83
84
	/**

lib/Service/MembersService.php 1 location

@@ 66-82 (lines=17) @@
63
	/** @var MiscService */
64
	private $miscService;
65
66
	public function __construct(
67
		$userId,
68
		IL10N $l10n,
69
		IUserManager $userManager,
70
		ConfigService $configService,
71
		DatabaseService $databaseService,
72
		MiscService $miscService
73
	) {
74
		$this->userId = $userId;
75
		$this->l10n = $l10n;
76
		$this->userManager = $userManager;
77
		$this->configService = $configService;
78
		$this->miscService = $miscService;
79
80
		$this->dbCircles = $databaseService->getCirclesMapper();
81
		$this->dbMembers = $databaseService->getMembersMapper();
82
	}
83
84
85
	/**