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

@@ 622-624 (lines=3) @@
619
					OC_Template::printGuestPage('', 'error', array('errors' => $errors));
620
					exit;
621
				}
622
			} elseif (self::$CLI && \OC::$server->getConfig()->getSystemValue('installed', false)) {
623
				\OC::$server->getConfig()->deleteAppValue('core', 'cronErrors');
624
			}
625
		}
626
		//try to set the session lifetime
627
		$sessionLifeTime = self::getSessionLifeTime();