Code Duplication    Length = 3-3 lines in 3 locations

lib/private/Installer.php 2 locations

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

lib/private/legacy/app.php 1 location

@@ 1099-1101 (lines=3) @@
1096
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1097
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1098
		}
1099
		foreach ($appData['remote'] as $name => $path) {
1100
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1101
		}
1102
		foreach ($appData['public'] as $name => $path) {
1103
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1104
		}