Code Duplication    Length = 3-3 lines in 2 locations

lib/base.php 1 location

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

lib/private/legacy/app.php 1 location

@@ 1055-1057 (lines=3) @@
1052
		//set remote/public handlers
1053
		if (array_key_exists('ocsid', $appData)) {
1054
			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
1055
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1056
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1057
		}
1058
		foreach ($appData['remote'] as $name => $path) {
1059
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1060
		}