Code Duplication    Length = 29-30 lines in 2 locations

lib/private/Settings/Manager.php 1 location

@@ 94-122 (lines=29) @@
91
	 * @param IFactory $l10nFactory
92
	 * @param IAppManager $appManager
93
	 */
94
	public function __construct(
95
		ILogger $log,
96
		IDBConnection $dbc,
97
		IL10N $l,
98
		IConfig $config,
99
		EncryptionManager $encryptionManager,
100
		IUserManager $userManager,
101
		ILockingProvider $lockingProvider,
102
		IRequest $request,
103
		IURLGenerator $url,
104
		AccountManager $accountManager,
105
		IGroupManager $groupManager,
106
		IFactory $l10nFactory,
107
		IAppManager $appManager
108
	) {
109
		$this->log = $log;
110
		$this->dbc = $dbc;
111
		$this->l = $l;
112
		$this->config = $config;
113
		$this->encryptionManager = $encryptionManager;
114
		$this->userManager = $userManager;
115
		$this->lockingProvider = $lockingProvider;
116
		$this->request = $request;
117
		$this->url = $url;
118
		$this->accountManager = $accountManager;
119
		$this->groupManager = $groupManager;
120
		$this->l10nFactory = $l10nFactory;
121
		$this->appManager = $appManager;
122
	}
123
124
	/** @var array */
125
	protected $sectionClasses = [];

settings/Controller/UsersController.php 1 location

@@ 96-125 (lines=30) @@
93
	private $encryptionManager;
94
95
96
	public function __construct(string $appName,
97
								IRequest $request,
98
								IUserManager $userManager,
99
								IGroupManager $groupManager,
100
								IUserSession $userSession,
101
								IConfig $config,
102
								bool $isAdmin,
103
								IL10N $l10n,
104
								IMailer $mailer,
105
								IFactory $l10nFactory,
106
								IAppManager $appManager,
107
								AccountManager $accountManager,
108
								Manager $keyManager,
109
								IJobList $jobList,
110
								IManager $encryptionManager) {
111
		parent::__construct($appName, $request);
112
		$this->userManager = $userManager;
113
		$this->groupManager = $groupManager;
114
		$this->userSession = $userSession;
115
		$this->config = $config;
116
		$this->isAdmin = $isAdmin;
117
		$this->l10n = $l10n;
118
		$this->mailer = $mailer;
119
		$this->l10nFactory = $l10nFactory;
120
		$this->appManager = $appManager;
121
		$this->accountManager = $accountManager;
122
		$this->keyManager = $keyManager;
123
		$this->jobList = $jobList;
124
		$this->encryptionManager = $encryptionManager;
125
	}
126
127
128
	/**