Code Duplication    Length = 5-5 lines in 2 locations

apps/user_ldap/lib/Jobs/CleanUp.php 1 location

@@ 92-96 (lines=5) @@
89
			$this->ldapHelper = new Helper(\OC::$server->getConfig());
90
		}
91
92
		if(isset($arguments['ocConfig'])) {
93
			$this->ocConfig = $arguments['ocConfig'];
94
		} else {
95
			$this->ocConfig = \OC::$server->getConfig();
96
		}
97
98
		if(isset($arguments['userBackend'])) {
99
			$this->userBackend = $arguments['userBackend'];

apps/user_ldap/lib/Jobs/Sync.php 1 location

@@ 299-303 (lines=5) @@
296
	 * @param array $argument
297
	 */
298
	public function setArgument($argument) {
299
		if(isset($argument['config'])) {
300
			$this->config = $argument['config'];
301
		} else {
302
			$this->config = \OC::$server->getConfig();
303
		}
304
305
		if(isset($argument['helper'])) {
306
			$this->ldapHelper = $argument['helper'];