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

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