Code Duplication    Length = 4-4 lines in 2 locations

www/engine/System/Classes/Modules/Extend/Utils/Loader/Addons.php 2 locations

@@ 24-27 (lines=4) @@
21
22
			$items = $this->loadItems(['installed' => false]);
23
24
			foreach ((Schema::get(static::$schema)->load() ?? []) as $item) {
25
26
				if (isset($items[$item['name']])) $items[$item['name']]['installed'] = true;
27
			}
28
29
			# ------------------------
30
@@ 42-45 (lines=4) @@
39
40
			$items = [];
41
42
			foreach ((Schema::get(static::$schema)->load() ?? []) as $item) {
43
44
				if (static::$extension_class::isValid($item['name'])) $items[$item['name']] = $item;
45
			}
46
47
			# ------------------------
48