Code Duplication    Length = 3-3 lines in 2 locations

lib/private/Installer.php 1 location

@@ 130-132 (lines=3) @@
127
		foreach($info['remote'] as $name=>$path) {
128
			\OC::$server->getConfig()->setAppValue('core', 'remote_'.$name, $info['id'].'/'.$path);
129
		}
130
		foreach($info['public'] as $name=>$path) {
131
			\OC::$server->getConfig()->setAppValue('core', 'public_'.$name, $info['id'].'/'.$path);
132
		}
133
134
		OC_App::setAppTypes($info['id']);
135

lib/private/legacy/app.php 1 location

@@ 1096-1098 (lines=3) @@
1093
		foreach ($appData['remote'] as $name => $path) {
1094
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1095
		}
1096
		foreach ($appData['public'] as $name => $path) {
1097
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1098
		}
1099
1100
		self::setAppTypes($appId);
1101