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

@@ 305-309 (lines=5) @@
302
	 * @param array $argument
303
	 */
304
	public function setArgument($argument) {
305
		if(isset($argument['config'])) {
306
			$this->config = $argument['config'];
307
		} else {
308
			$this->config = \OC::$server->getConfig();
309
		}
310
311
		if(isset($argument['helper'])) {
312
			$this->ldapHelper = $argument['helper'];