Code Duplication    Length = 4-4 lines in 2 locations

settings/Controller/AppSettingsController.php 2 locations

@@ 331-334 (lines=4) @@
328
			case 'installed':
329
				$apps = $appClass->listAllApps();
330
331
				foreach($apps as $key => $app) {
332
					$newVersion = $this->installer->isUpdateAvailable($app['id']);
333
					$apps[$key]['update'] = $newVersion;
334
				}
335
336
				usort($apps, function ($a, $b) {
337
					$a = (string)$a['name'];
@@ 356-359 (lines=4) @@
353
					return $app['active'];
354
				});
355
356
				foreach($apps as $key => $app) {
357
					$newVersion = $this->installer->isUpdateAvailable($app['id']);
358
					$apps[$key]['update'] = $newVersion;
359
				}
360
361
				usort($apps, function ($a, $b) {
362
					$a = (string)$a['name'];