Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 111-115 (lines=5) @@
108
			);
109
		}
110
111
		if(isset($arguments['db'])) {
112
			$this->db = $arguments['db'];
113
		} else {
114
			$this->db = \OC::$server->getDatabaseConnection();
115
		}
116
117
		if(isset($arguments['mapping'])) {
118
			$this->mapping = $arguments['mapping'];

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

@@ 323-327 (lines=5) @@
320
			$this->avatarManager = \OC::$server->getAvatarManager();
321
		}
322
323
		if(isset($argument['dbc'])) {
324
			$this->dbc = $argument['dbc'];
325
		} else {
326
			$this->dbc = \OC::$server->getDatabaseConnection();
327
		}
328
329
		if(isset($argument['ncUserManager'])) {
330
			$this->ncUserManager = $argument['ncUserManager'];