Code Duplication    Length = 3-3 lines in 3 locations

lib/private/app.php 1 location

@@ 1179-1181 (lines=3) @@
1176
		} elseif(OC_Appconfig::getValue($appId, 'ocsid', null) !== null) {
1177
			OC_Appconfig::deleteKey($appId, 'ocsid');
1178
		}
1179
		foreach ($appData['remote'] as $name => $path) {
1180
			OCP\CONFIG::setAppValue('core', 'remote_' . $name, $appId . '/' . $path);
1181
		}
1182
		foreach ($appData['public'] as $name => $path) {
1183
			OCP\CONFIG::setAppValue('core', 'public_' . $name, $appId . '/' . $path);
1184
		}

lib/private/installer.php 2 locations

@@ 122-124 (lines=3) @@
119
		OC_Appconfig::setValue($info['id'], 'enabled', 'no');
120
121
		//set remote/public handelers
122
		foreach($info['remote'] as $name=>$path) {
123
			OCP\CONFIG::setAppValue('core', 'remote_'.$name, $info['id'].'/'.$path);
124
		}
125
		foreach($info['public'] as $name=>$path) {
126
			OCP\CONFIG::setAppValue('core', 'public_'.$name, $info['id'].'/'.$path);
127
		}
@@ 519-521 (lines=3) @@
516
		}
517
518
		//set remote/public handelers
519
		foreach($info['remote'] as $name=>$path) {
520
			OCP\CONFIG::setAppValue('core', 'remote_'.$name, $app.'/'.$path);
521
		}
522
		foreach($info['public'] as $name=>$path) {
523
			OCP\CONFIG::setAppValue('core', 'public_'.$name, $app.'/'.$path);
524
		}