Code Duplication    Length = 3-3 lines in 2 locations

lib/private/legacy/app.php 1 location

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

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