Code Duplication    Length = 3-3 lines in 3 locations

lib/private/Installer.php 2 locations

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

lib/private/legacy/app.php 1 location

@@ 1001-1003 (lines=3) @@
998
		} elseif (\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
999
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1000
		}
1001
		foreach ($appData['remote'] as $name => $path) {
1002
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1003
		}
1004
		foreach ($appData['public'] as $name => $path) {
1005
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1006
		}