From a9654f00c8fbc9934289d761843ddd071025013f Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 28 Aug 2026 17:20:28 +0000
Subject: [PATCH] =PHPStorm Code Inspection: fixed class reference errors (from getting rid of JVB() and replacing with direct class::getInstance; as well as general code sniffing, etc

---
 inc/meta/Item.php |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/inc/meta/Item.php b/inc/meta/Item.php
index ff1fded..42efb63 100644
--- a/inc/meta/Item.php
+++ b/inc/meta/Item.php
@@ -193,10 +193,9 @@
 	 */
 	public function toArray(): array
 	{
-		$data = [];
-		foreach ($this->fields as $name => $field) {
-			$data[$name] = $field->value;
-		}
+        $data = array_map(function ($field) {
+            return $field->value;
+        }, $this->fields);
 		return $data;
 	}
 }

--
Gitblit v1.10.0