Code Duplication    Length = 3-3 lines in 2 locations

lib/private/app.php 1 location

@@ 1179-1181 (lines=3) @@
1176
		$appData = self::getAppInfo($appId);
1177
		if (array_key_exists('ocsid', $appData)) {
1178
			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
1179
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1180
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1181
		}
1182
		foreach ($appData['remote'] as $name => $path) {
1183
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1184
		}

lib/base.php 1 location

@@ 603-605 (lines=3) @@
600
					OC_Template::printGuestPage('', 'error', array('errors' => $errors));
601
					exit;
602
				}
603
			} elseif (self::$CLI && \OC::$server->getConfig()->getSystemValue('installed', false)) {
604
				\OC::$server->getConfig()->deleteAppValue('core', 'cronErrors');
605
			}
606
		}
607
		//try to set the session lifetime
608
		$sessionLifeTime = self::getSessionLifeTime();