Code Duplication    Length = 3-3 lines in 2 locations

lib/private/Installer.php 1 location

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

lib/private/legacy/app.php 1 location

@@ 919-921 (lines=3) @@
916
		foreach ($appData['remote'] as $name => $path) {
917
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
918
		}
919
		foreach ($appData['public'] as $name => $path) {
920
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
921
		}
922
923
		self::setAppTypes($appId);
924