Code Duplication    Length = 3-3 lines in 3 locations

lib/private/Installer.php 2 locations

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

lib/private/legacy/app.php 1 location

@@ 1010-1012 (lines=3) @@
1007
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1008
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1009
		}
1010
		foreach ($appData['remote'] as $name => $path) {
1011
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1012
		}
1013
		foreach ($appData['public'] as $name => $path) {
1014
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1015
		}