Code Duplication    Length = 3-3 lines in 2 locations

lib/private/legacy/app.php 1 location

@@ 1071-1073 (lines=3) @@
1068
		foreach ($appData['remote'] as $name => $path) {
1069
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1070
		}
1071
		foreach ($appData['public'] as $name => $path) {
1072
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1073
		}
1074
1075
		self::setAppTypes($appId);
1076

lib/private/Installer.php 1 location

@@ 167-169 (lines=3) @@
164
		foreach($info['remote'] as $name=>$path) {
165
			\OC::$server->getConfig()->setAppValue('core', 'remote_'.$name, $info['id'].'/'.$path);
166
		}
167
		foreach($info['public'] as $name=>$path) {
168
			\OC::$server->getConfig()->setAppValue('core', 'public_'.$name, $info['id'].'/'.$path);
169
		}
170
171
		OC_App::setAppTypes($info['id']);
172