Code Duplication    Length = 3-3 lines in 2 locations

lib/private/Installer.php 1 location

@@ 140-142 (lines=3) @@
137
		foreach($info['remote'] as $name=>$path) {
138
			\OC::$server->getConfig()->setAppValue('core', 'remote_'.$name, $info['id'].'/'.$path);
139
		}
140
		foreach($info['public'] as $name=>$path) {
141
			\OC::$server->getConfig()->setAppValue('core', 'public_'.$name, $info['id'].'/'.$path);
142
		}
143
144
		OC_App::setAppTypes($info['id']);
145

lib/private/legacy/app.php 1 location

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