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

diff --git a/inc/managers/Errors.php b/inc/managers/Errors.php
index 997dfbc..0097b66 100644
--- a/inc/managers/Errors.php
+++ b/inc/managers/Errors.php
@@ -219,8 +219,7 @@
 			$user_was_logged_in = $user_id > 0 || (!empty($context['isLoggedIn']));
 
 			// Determine source from context
-			$source = isset($context['source']) ? $context['source'] :
-				(isset($context['url']) ? 'frontend' : 'backend');
+			$source = $context['source'] ?? (isset($context['url']) ? 'frontend' : 'backend');
 
 			$result = $this->table->insert(
 				[
@@ -355,7 +354,7 @@
 			);
 		}
 
-		$body .= Emails::getInstance()->spacer(20);
+		$body .= Emails::getInstance()->spacer();
 
 		// Frequent errors section
 		if (!empty($summary['frequent'])) {

--
Gitblit v1.10.0