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/managers/queue/executors/ContentTermExecutor.php |   25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/inc/managers/queue/executors/ContentTermExecutor.php b/inc/managers/queue/executors/ContentTermExecutor.php
index 010b5fe..0592fb1 100644
--- a/inc/managers/queue/executors/ContentTermExecutor.php
+++ b/inc/managers/queue/executors/ContentTermExecutor.php
@@ -2,6 +2,7 @@
 namespace JVBase\managers\queue\executors;
 
 use JVBase\managers\CustomTable;
+use JVBase\managers\NotificationManager;
 use JVBase\managers\queue\Executor;
 use JVBase\managers\queue\Operation;
 use JVBase\managers\queue\Progress;
@@ -318,18 +319,16 @@
 		$term = get_term($termID, jvbCheckBase($taxonomy));
 		$user = get_userdata($userID);
 
-		foreach ($managers as $managerID) {
-			NotificationManager::getInstance()->addNotification(
-				$managerID,
-				$notificationType,
-				[
-					'user_id' => $userID,
-					'user_name' => $user ? $user->display_name : 'Unknown',
-					'term_id' => $termID,
-					'term_name' => $term && !is_wp_error($term) ? $term->name : 'Unknown',
-					'taxonomy' => $taxonomy
-				]
-			);
-		}
+		//TODO: Check this
+		NotificationManager::getInstance()->notify(
+			$managers,
+			$notificationType,
+			$userID,
+			[
+				'target_id' => $termID,
+				'target_type' => $taxonomy
+			]
+		);
+
 	}
 }

--
Gitblit v1.10.0