Code Duplication    Length = 3-3 lines in 2 locations

lib/private/legacy/app.php 1 location

@@ 1065-1067 (lines=3) @@
1062
		//set remote/public handlers
1063
		if (array_key_exists('ocsid', $appData)) {
1064
			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
1065
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1066
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1067
		}
1068
		foreach ($appData['remote'] as $name => $path) {
1069
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1070
		}

lib/base.php 1 location

@@ 678-680 (lines=3) @@
675
					OC_Template::printGuestPage('', 'error', array('errors' => $errors));
676
					exit;
677
				}
678
			} elseif (self::$CLI && \OC::$server->getConfig()->getSystemValue('installed', false)) {
679
				\OC::$server->getConfig()->deleteAppValue('core', 'cronErrors');
680
			}
681
		}
682
		//try to set the session lifetime
683
		$sessionLifeTime = self::getSessionLifeTime();