Code Duplication    Length = 3-3 lines in 2 locations

lib/private/Installer.php 1 location

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

lib/private/legacy/app.php 1 location

@@ 1228-1230 (lines=3) @@
1225
		foreach ($appData['remote'] as $name => $path) {
1226
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1227
		}
1228
		foreach ($appData['public'] as $name => $path) {
1229
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1230
		}
1231
1232
		self::setAppTypes($appId);
1233