Code Duplication    Length = 3-3 lines in 2 locations

lib/private/legacy/app.php 1 location

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

lib/base.php 1 location

@@ 598-600 (lines=3) @@
595
					OC_Template::printGuestPage('', 'error', ['errors' => $errors]);
596
					exit;
597
				}
598
			} elseif (self::$CLI && \OC::$server->getConfig()->getSystemValue('installed', false)) {
599
				\OC::$server->getConfig()->deleteAppValue('core', 'cronErrors');
600
			}
601
		}
602
603
		// set back user