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/services/UmamiOld.php |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/inc/integrations/services/UmamiOld.php b/inc/integrations/services/UmamiOld.php
index bf4df17..a0fed94 100644
--- a/inc/integrations/services/UmamiOld.php
+++ b/inc/integrations/services/UmamiOld.php
@@ -1,7 +1,8 @@
 <?php
 namespace JVBase\integrations\services;
+use Exception;
 use JVBase\integrations\Integrations;
-use JVBase\registrar\Registrar;
+use WP_Error;
 
 if (!defined('ABSPATH')) {
 	exit;
@@ -618,7 +619,7 @@
 			$referer = $_SERVER['HTTP_REFERER'];
 			$site_url = get_site_url();
 
-			if (strpos($referer, $site_url) === false) {
+			if (!str_contains($referer, $site_url)) {
 				$domain = parse_url($referer, PHP_URL_HOST);
 				return $domain ?: 'external';
 			}
@@ -699,7 +700,7 @@
 	/**
 	 * Process queued operations
 	 */
-	public function processOperation(array|\WP_Error $result, object $operation, array $data): array|\WP_Error
+	public function processOperation(array|WP_Error $result, object $operation, array $data): array|WP_Error
 	{
 		$prefix = strtolower($this->service_name) . '_';
 

--
Gitblit v1.10.0