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

@@ 1250-1252 (lines=3) @@
1247
		foreach ($appData['remote'] as $name => $path) {
1248
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1249
		}
1250
		foreach ($appData['public'] as $name => $path) {
1251
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1252
		}
1253
1254
		self::setAppTypes($appId);
1255