From c204185ae86a98994f80010abf35a190c9406739 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Sun, 12 Jul 2026 18:08:19 +0000
Subject: [PATCH] =Refactor of Integrations.php. Separated different functionality into traits that classes can use to add that functionality. Hopefully will make maintaining it a little easier. Still have to finish up, as well as refactoring the individual classes to utilize the new system.

---
 inc/integrations/services/Umami.php |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/inc/integrations/Umami.php b/inc/integrations/services/Umami.php
similarity index 98%
rename from inc/integrations/Umami.php
rename to inc/integrations/services/Umami.php
index 4afb1d5..807ec3b 100644
--- a/inc/integrations/Umami.php
+++ b/inc/integrations/services/Umami.php
@@ -1,10 +1,6 @@
 <?php
-namespace JVBase\integrations;
-
-use JVBase\managers\Cache;
-use WP_Error;
-use WP_Post;
-use Exception;
+namespace JVBase\integrations\services;
+use JVBase\integrations\Integrations;
 
 if (!defined('ABSPATH')) {
 	exit;
@@ -88,7 +84,7 @@
 			'Login to your <a href="https://cloud.umami.is/settings/websites" target="_blank">umami.is</a> account, select your website, and copy the website ID'
 		];
 
-		parent::__construct($userID);
+		parent::__construct();
 
 		$this->actions = array_merge(
 			$this->actions,
@@ -705,7 +701,7 @@
 	/**
 	 * Process queued operations
 	 */
-	public function processOperation(WP_Error|array $result, object $operation, array $data): WP_Error|array
+	public function processOperation(array|\WP_Error $result, object $operation, array $data): array|\WP_Error
 	{
 		$prefix = strtolower($this->service_name) . '_';
 

--
Gitblit v1.10.0