Code Duplication    Length = 3-3 lines in 2 locations

lib/private/Installer.php 1 location

@@ 169-171 (lines=3) @@
166
		foreach($info['remote'] as $name=>$path) {
167
			\OC::$server->getConfig()->setAppValue('core', 'remote_'.$name, $info['id'].'/'.$path);
168
		}
169
		foreach($info['public'] as $name=>$path) {
170
			\OC::$server->getConfig()->setAppValue('core', 'public_'.$name, $info['id'].'/'.$path);
171
		}
172
173
		OC_App::setAppTypes($info['id']);
174

lib/private/legacy/app.php 1 location

@@ 1079-1081 (lines=3) @@
1076
		foreach ($appData['remote'] as $name => $path) {
1077
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1078
		}
1079
		foreach ($appData['public'] as $name => $path) {
1080
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1081
		}
1082
1083
		self::setAppTypes($appId);
1084