Code Duplication    Length = 15-17 lines in 2 locations

lib/Service/CirclesService.php 1 location

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

lib/Service/MembersService.php 1 location

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