Code Duplication    Length = 3-3 lines in 2 locations

lib/base.php 1 location

@@ 623-625 (lines=3) @@
620
					OC_Template::printGuestPage('', 'error', ['errors' => $errors]);
621
					exit;
622
				}
623
			} elseif (self::$CLI && \OC::$server->getConfig()->getSystemValue('installed', false)) {
624
				\OC::$server->getConfig()->deleteAppValue('core', 'cronErrors');
625
			}
626
		}
627
628
		// set back user

lib/private/legacy/app.php 1 location

@@ 1082-1084 (lines=3) @@
1079
		//set remote/public handlers
1080
		if (array_key_exists('ocsid', $appData)) {
1081
			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
1082
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1083
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1084
		}
1085
		foreach ($appData['remote'] as $name => $path) {
1086
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1087
		}