Code Duplication    Length = 3-3 lines in 2 locations

lib/base.php 1 location

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

lib/private/legacy/app.php 1 location

@@ 1046-1048 (lines=3) @@
1043
		//set remote/public handlers
1044
		if (array_key_exists('ocsid', $appData)) {
1045
			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
1046
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1047
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1048
		}
1049
		foreach ($appData['remote'] as $name => $path) {
1050
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1051
		}