Code Duplication    Length = 3-3 lines in 3 locations

lib/private/Installer.php 2 locations

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

lib/private/legacy/app.php 1 location

@@ 1049-1051 (lines=3) @@
1046
		} elseif(\OC::$server->getConfig()->getAppValue($appId, 'ocsid', null) !== null) {
1047
			\OC::$server->getConfig()->deleteAppValue($appId, 'ocsid');
1048
		}
1049
		foreach ($appData['remote'] as $name => $path) {
1050
			\OC::$server->getConfig()->setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1051
		}
1052
		foreach ($appData['public'] as $name => $path) {
1053
			\OC::$server->getConfig()->setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1054
		}