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

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