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

diff --git a/inc/integrations/Integrations.php b/inc/integrations/Integrations.php
index 21cf95f..f2e8147 100644
--- a/inc/integrations/Integrations.php
+++ b/inc/integrations/Integrations.php
@@ -3,6 +3,7 @@
 
 use Exception;
 use JVBase\managers\Cache;
+use JVBase\managers\queue\Queue;
 use JVBase\managers\UploadManager;
 use JVBase\registrar\Registrar;
 use WP_Error;
@@ -177,7 +178,7 @@
 
 			return $this->response(false, 'Failed to save credentials to database');
 
-		} catch (\Exception $e) {
+		} catch (Exception $e) {
 			// Revert to old credentials on any error
 			$old = Auth::getInstance()->getCredentials(
 				$this->service_name,
@@ -476,7 +477,7 @@
 				'message' => 'Connection established successfully'
 			];
 
-		} catch (\Exception $e) {
+		} catch (Exception $e) {
 			return [
 				'success' => false,
 				'message' => 'Error: ' . $e->getMessage()
@@ -608,7 +609,7 @@
 			return $jpegVersion;
 		}
 		$uploader = UploadManager::getInstance();
-		$converted = $uploader->convertImageTo($imgID, 'jpeg', 80, false);
+		$converted = $uploader->convertImageTo($imgID, 'jpeg');
 		if ($converted && !is_wp_error($converted)) {
 			update_post_meta($imgID, BASE . 'jpeg_version', $converted['attachment_id']);
 			return $converted['attachment_id'];

--
Gitblit v1.10.0