Code Duplication    Length = 3-3 lines in 3 locations

lib/private/Installer.php 2 locations

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

lib/private/legacy/app.php 1 location

@@ 1085-1087 (lines=3) @@
1082
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1083
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1084
		}
1085
		foreach ($appData['remote'] as $name => $path) {
1086
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1087
		}
1088
		foreach ($appData['public'] as $name => $path) {
1089
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1090
		}