Code Duplication    Length = 3-3 lines in 2 locations

lib/base.php 1 location

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

lib/private/legacy/app.php 1 location

@@ 1096-1098 (lines=3) @@
1093
		//set remote/public handlers
1094
		if (array_key_exists('ocsid', $appData)) {
1095
			\OC::$server->getConfig()->setAppValue($appId, 'ocsid', $appData['ocsid']);
1096
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1097
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1098
		}
1099
		foreach ($appData['remote'] as $name => $path) {
1100
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1101
		}