Code Duplication    Length = 18-20 lines in 2 locations

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

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

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

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