Code Duplication    Length = 13-17 lines in 5 locations

lib/Controller/CirclesController.php 1 location

@@ 56-72 (lines=17) @@
53
	/** @var MiscService */
54
	private $miscService;
55
56
	public function __construct(
57
		$appName,
58
		IRequest $request,
59
		$userId,
60
		IL10N $l10n,
61
		ConfigService $configService,
62
		CirclesService $circlesService,
63
		MiscService $miscService
64
	) {
65
		parent::__construct($appName, $request);
66
67
		$this->userId = $userId;
68
		$this->l10n = $l10n;
69
		$this->configService = $configService;
70
		$this->circlesService = $circlesService;
71
		$this->miscService = $miscService;
72
	}
73
74
75
	/**

lib/Controller/MembersController.php 1 location

@@ 52-68 (lines=17) @@
49
	/** @var MiscService */
50
	private $miscService;
51
52
	public function __construct(
53
		$appName,
54
		IRequest $request,
55
		$userId,
56
		IL10N $l10n,
57
		ConfigService $configService,
58
		MembersService $membersService,
59
		MiscService $miscService
60
	) {
61
		parent::__construct($appName, $request);
62
63
		$this->userId = $userId;
64
		$this->l10n = $l10n;
65
		$this->configService = $configService;
66
		$this->membersService = $membersService;
67
		$this->miscService = $miscService;
68
	}
69
70
71
	/**

lib/Controller/NavigationController.php 1 location

@@ 48-62 (lines=15) @@
45
	/** @var MiscService */
46
	private $miscService;
47
48
	public function __construct(
49
		$appName,
50
		IRequest $request,
51
		$userId,
52
		IL10N $l10n,
53
		ConfigService $configService,
54
		MiscService $miscService
55
	) {
56
		parent::__construct($appName, $request);
57
58
		$this->userId = $userId;
59
		$this->l10n = $l10n;
60
		$this->configService = $configService;
61
		$this->miscService = $miscService;
62
	}
63
64
65
	/**

lib/Service/CirclesService.php 1 location

@@ 51-63 (lines=13) @@
48
	private $databaseService;
49
	private $miscService;
50
51
	public function __construct(
52
		$userId,
53
		IL10N $l10n,
54
		ConfigService $configService,
55
		DatabaseService $databaseService,
56
		MiscService $miscService
57
	) {
58
		$this->userId = $userId;
59
		$this->l10n = $l10n;
60
		$this->configService = $configService;
61
		$this->databaseService = $databaseService;
62
		$this->miscService = $miscService;
63
	}
64
65
66
	/**

lib/Service/MembersService.php 1 location

@@ 49-63 (lines=15) @@
46
	private $databaseService;
47
	private $miscService;
48
49
	public function __construct(
50
		$userId,
51
		IL10N $l10n,
52
		IUserManager $userManager,
53
		ConfigService $configService,
54
		DatabaseService $databaseService,
55
		MiscService $miscService
56
	) {
57
		$this->userId = $userId;
58
		$this->l10n = $l10n;
59
		$this->userManager = $userManager;
60
		$this->configService = $configService;
61
		$this->databaseService = $databaseService;
62
		$this->miscService = $miscService;
63
	}
64
65
66
//	public function searchMembers($name) {