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

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