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

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