Code Duplication    Length = 3-3 lines in 2 locations

lib/base.php 1 location

@@ 687-689 (lines=3) @@
684
					OC_Template::printGuestPage('', 'error', array('errors' => $errors));
685
					exit;
686
				}
687
			} elseif (self::$CLI && \OC::$server->getConfig()->getSystemValue('installed', false)) {
688
				\OC::$server->getConfig()->deleteAppValue('core', 'cronErrors');
689
			}
690
		}
691
		//try to set the session lifetime
692
		$sessionLifeTime = self::getSessionLifeTime();

lib/private/legacy/app.php 1 location

@@ 1090-1092 (lines=3) @@
1087
		//set remote/public handlers
1088
		if (array_key_exists('ocsid', $appData)) {
1089
			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
1090
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1091
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1092
		}
1093
		foreach ($appData['remote'] as $name => $path) {
1094
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1095
		}