Code Duplication    Length = 17-17 lines in 2 locations

lib/private/Settings/Personal/PersonalInfo.php 1 location

@@ 71-87 (lines=17) @@
68
	 * @param IFactory $l10nFactory
69
	 * @param IL10N $l
70
	 */
71
	public function __construct(
72
		IConfig $config,
73
		IUserManager $userManager,
74
		IGroupManager $groupManager,
75
		AccountManager $accountManager,
76
		IAppManager $appManager,
77
		IFactory $l10nFactory,
78
		IL10N $l
79
	) {
80
		$this->config = $config;
81
		$this->userManager = $userManager;
82
		$this->accountManager = $accountManager;
83
		$this->groupManager = $groupManager;
84
		$this->appManager = $appManager;
85
		$this->l10nFactory = $l10nFactory;
86
		$this->l = $l;
87
	}
88
89
	/**
90
	 * @return TemplateResponse returns the instance with all parameters set, ready to be rendered

settings/Controller/ChangePasswordController.php 1 location

@@ 68-84 (lines=17) @@
65
	 * @param IAppManager $appManager
66
	 * @param IL10N $l
67
	 */
68
	public function __construct($appName,
69
								IRequest $request,
70
								$userId,
71
								UserManager $userManager,
72
								IUserSession $userSession,
73
								GroupManager $groupManager,
74
								IAppManager $appManager,
75
								IL10N $l) {
76
		parent::__construct($appName, $request);
77
78
		$this->userId = $userId;
79
		$this->userManager = $userManager;
80
		$this->userSession = $userSession;
81
		$this->groupManager = $groupManager;
82
		$this->appManager = $appManager;
83
		$this->l = $l;
84
	}
85
86
	/**
87
	 * @NoAdminRequired