Code Duplication    Length = 18-20 lines in 2 locations

apps/encryption/hooks/userhooks.php 1 location

@@ 92-111 (lines=20) @@
89
	 * @param Crypt $crypt
90
	 * @param Recovery $recovery
91
	 */
92
	public function __construct(KeyManager $keyManager,
93
								IUserManager $userManager,
94
								ILogger $logger,
95
								Setup $userSetup,
96
								IUserSession $user,
97
								Util $util,
98
								Session $session,
99
								Crypt $crypt,
100
								Recovery $recovery) {
101
102
		$this->keyManager = $keyManager;
103
		$this->userManager = $userManager;
104
		$this->logger = $logger;
105
		$this->userSetup = $userSetup;
106
		$this->user = $user;
107
		$this->util = $util;
108
		$this->session = $session;
109
		$this->recovery = $recovery;
110
		$this->crypt = $crypt;
111
	}
112
113
	/**
114
	 * Connects Hooks

apps/encryption/lib/crypto/encryption.php 1 location

@@ 107-124 (lines=18) @@
104
	 * @param ILogger $logger
105
	 * @param IL10N $il10n
106
	 */
107
	public function __construct(Crypt $crypt,
108
								KeyManager $keyManager,
109
								Util $util,
110
								Session $session,
111
								EncryptAll $encryptAll,
112
								DecryptAll $decryptAll,
113
								ILogger $logger,
114
								IL10N $il10n) {
115
		$this->crypt = $crypt;
116
		$this->keyManager = $keyManager;
117
		$this->util = $util;
118
		$this->session = $session;
119
		$this->encryptAll = $encryptAll;
120
		$this->decryptAll = $decryptAll;
121
		$this->logger = $logger;
122
		$this->l = $il10n;
123
		$this->useMasterPassword = $util->isMasterKeyEnabled();
124
	}
125
126
	/**
127
	 * @return string defining the technical unique id