Code Duplication    Length = 3-3 lines in 3 locations

lib/private/Installer.php 2 locations

@@ 151-153 (lines=3) @@
148
		\OC::$server->getConfig()->setAppValue($info['id'], 'enabled', 'no');
149
150
		//set remote/public handlers
151
		foreach($info['remote'] as $name=>$path) {
152
			\OC::$server->getConfig()->setAppValue('core', 'remote_'.$name, $info['id'].'/'.$path);
153
		}
154
		foreach($info['public'] as $name=>$path) {
155
			\OC::$server->getConfig()->setAppValue('core', 'public_'.$name, $info['id'].'/'.$path);
156
		}
@@ 154-156 (lines=3) @@
151
		foreach($info['remote'] as $name=>$path) {
152
			\OC::$server->getConfig()->setAppValue('core', 'remote_'.$name, $info['id'].'/'.$path);
153
		}
154
		foreach($info['public'] as $name=>$path) {
155
			\OC::$server->getConfig()->setAppValue('core', 'public_'.$name, $info['id'].'/'.$path);
156
		}
157
158
		OC_App::setAppTypes($info['id']);
159

lib/private/legacy/app.php 1 location

@@ 1245-1247 (lines=3) @@
1242
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1243
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1244
		}
1245
		foreach ($appData['remote'] as $name => $path) {
1246
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1247
		}
1248
		foreach ($appData['public'] as $name => $path) {
1249
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1250
		}