Code Duplication    Length = 3-3 lines in 2 locations

lib/private/app.php 1 location

@@ 1136-1138 (lines=3) @@
1133
		$appData = self::getAppInfo($appId);
1134
		if (array_key_exists('ocsid', $appData)) {
1135
			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
1136
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1137
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1138
		}
1139
		foreach ($appData['remote'] as $name => $path) {
1140
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1141
		}

lib/base.php 1 location

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