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

@@ 960-962 (lines=3) @@
957
		foreach ($appData['remote'] as $name => $path) {
958
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
959
		}
960
		foreach ($appData['public'] as $name => $path) {
961
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
962
		}
963
964
		self::setAppTypes($appId);
965