Code Duplication    Length = 3-3 lines in 2 locations

lib/private/Installer.php 1 location

@@ 154-156 (lines=3) @@
151
		foreach($info['remote'] as $name=>$path) {
152
			\OC::$server->getConfig()->setAppValue('core', 'remote_'.$name, $info['id'].'/'.$path);
153
		}
154
		foreach($info['public'] as $name=>$path) {
155
			\OC::$server->getConfig()->setAppValue('core', 'public_'.$name, $info['id'].'/'.$path);
156
		}
157
158
		OC_App::setAppTypes($info['id']);
159

lib/private/legacy/app.php 1 location

@@ 1212-1214 (lines=3) @@
1209
		foreach ($appData['remote'] as $name => $path) {
1210
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1211
		}
1212
		foreach ($appData['public'] as $name => $path) {
1213
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1214
		}
1215
1216
		self::setAppTypes($appId);
1217