Code Duplication    Length = 3-3 lines in 2 locations

lib/private/Installer.php 1 location

@@ 131-133 (lines=3) @@
128
		foreach($info['remote'] as $name=>$path) {
129
			\OC::$server->getConfig()->setAppValue('core', 'remote_'.$name, $info['id'].'/'.$path);
130
		}
131
		foreach($info['public'] as $name=>$path) {
132
			\OC::$server->getConfig()->setAppValue('core', 'public_'.$name, $info['id'].'/'.$path);
133
		}
134
135
		OC_App::setAppTypes($info['id']);
136

lib/private/legacy/app.php 1 location

@@ 1160-1162 (lines=3) @@
1157
		foreach ($appData['remote'] as $name => $path) {
1158
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1159
		}
1160
		foreach ($appData['public'] as $name => $path) {
1161
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1162
		}
1163
1164
		self::setAppTypes($appId);
1165