Code Duplication    Length = 3-3 lines in 2 locations

lib/base.php 1 location

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

lib/private/legacy/app.php 1 location

@@ 1007-1009 (lines=3) @@
1004
		//set remote/public handlers
1005
		if (\array_key_exists('ocsid', $appData)) {
1006
			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
1007
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1008
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1009
		}
1010
		foreach ($appData['remote'] as $name => $path) {
1011
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1012
		}