Code Duplication    Length = 19-20 lines in 2 locations

apps/encryption/lib/Crypto/Encryption.php 1 location

@@ 126-144 (lines=19) @@
123
	 * @param ILogger $logger
124
	 * @param IL10N $il10n
125
	 */
126
	public function __construct(Crypt $crypt,
127
								KeyManager $keyManager,
128
								Util $util,
129
								Session $session,
130
								EncryptAll $encryptAll,
131
								DecryptAll $decryptAll,
132
								ILogger $logger,
133
								IL10N $il10n) {
134
		$this->crypt = $crypt;
135
		$this->keyManager = $keyManager;
136
		$this->util = $util;
137
		$this->session = $session;
138
		$this->encryptAll = $encryptAll;
139
		$this->decryptAll = $decryptAll;
140
		$this->logger = $logger;
141
		$this->l = $il10n;
142
		$this->owner = [];
143
		$this->useMasterPassword = $util->isMasterKeyEnabled();
144
	}
145
146
	/**
147
	 * @return string defining the technical unique id

apps/encryption/lib/Hooks/UserHooks.php 1 location

@@ 100-119 (lines=20) @@
97
	 * @param Crypt $crypt
98
	 * @param Recovery $recovery
99
	 */
100
	public function __construct(KeyManager $keyManager,
101
								IUserManager $userManager,
102
								ILogger $logger,
103
								Setup $userSetup,
104
								IUserSession $user,
105
								Util $util,
106
								Session $session,
107
								Crypt $crypt,
108
								Recovery $recovery) {
109
110
		$this->keyManager = $keyManager;
111
		$this->userManager = $userManager;
112
		$this->logger = $logger;
113
		$this->userSetup = $userSetup;
114
		$this->user = $user;
115
		$this->util = $util;
116
		$this->session = $session;
117
		$this->recovery = $recovery;
118
		$this->crypt = $crypt;
119
	}
120
121
	/**
122
	 * Connects Hooks