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/integrations/SyncToTerm.php |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/inc/integrations/SyncToTerm.php b/inc/integrations/SyncToTerm.php
index 0f830a6..1536beb 100644
--- a/inc/integrations/SyncToTerm.php
+++ b/inc/integrations/SyncToTerm.php
@@ -1,6 +1,7 @@
 <?php
 namespace JVBase\integrations;
 
+use JVBase\managers\queue\Queue;
 use JVBase\meta\Meta;
 use JVBase\registrar\Registrar;
 
@@ -25,7 +26,7 @@
 		if (empty($this->syncTaxonomies)) {
 			return;
 		}
-		remove_action('saved_term', [$this, 'handleSaveTerm'], 20, 3);
+		remove_action('saved_term', [$this, 'handleSaveTerm'], 20);
 	}
 	protected function handleSaveTerm(int $termID, int $tt_id, string $taxonomy, bool $update, array $args):void
 	{
@@ -102,7 +103,7 @@
 		if (empty($fields["_{$this->service_name}_item_id"])) {
 			return;
 		}
-		JVB()->queue()->add(
+		Queue::getInstance()->add(
 			self::$deleteFrom,
 			0,
 			[

--
Gitblit v1.10.0