Code Duplication    Length = 3-3 lines in 2 locations

lib/base.php 1 location

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

lib/private/legacy/app.php 1 location

@@ 994-996 (lines=3) @@
991
		//set remote/public handlers
992
		if (\array_key_exists('ocsid', $appData)) {
993
			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
994
		} elseif (\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
995
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
996
		}
997
		foreach ($appData['remote'] as $name => $path) {
998
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
999
		}