Code Duplication    Length = 3-3 lines in 3 locations

lib/private/app.php 1 location

@@ 1182-1184 (lines=3) @@
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
		}
1185
1186
		self::setAppTypes($appId);
1187

lib/private/installer.php 2 locations

@@ 125-127 (lines=3) @@
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
		}
128
129
		OC_App::setAppTypes($info['id']);
130
@@ 522-524 (lines=3) @@
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
		}
525
526
		OC_App::setAppTypes($info['id']);
527