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/rest/routes/Invitations.php | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/inc/rest/routes/Invitations.php b/inc/rest/routes/Invitations.php
index 9dbb49f..558f118 100644
--- a/inc/rest/routes/Invitations.php
+++ b/inc/rest/routes/Invitations.php
@@ -2,7 +2,10 @@
namespace JVBase\rest\routes;
use JVBase\Instance;
+use JVBase\managers\Cache;
use JVBase\managers\InvitationsManager;
+use JVBase\managers\queue\Queue;
+use JVBase\managers\Roles;
use JVBase\rest\Rest;
use JVBase\managers\CustomTable;
use JVBase\rest\Route;
@@ -25,20 +28,18 @@
use Instance;
protected array $inviteConfig;
protected CustomTable $table;
-
+ protected Cache $termCache;
public function __construct()
{
$this->cacheName = 'invitations';
parent::__construct();
+ $this->cache = Cache::for('invitations_posts','post');
+ $this->termCache = Cache::for('invitation_terms', 'term');
// Get invitation configuration
$this->inviteConfig = InvitationsManager::getInstance()->getInviteConfig();
$this->table = CustomTable::for('invitations');
- // Cache connections
- $this->cache
- ->connect('user')
- ->connect('taxonomy');
}
public function registerRoutes(): void
@@ -80,7 +81,7 @@
}
$args = [
- 'user' => $userID,
+ 'id' => $userID,
'to_term' => $termID,
'taxonomy' => $taxonomy ? jvbNoBase($taxonomy) : null,
'status' => $request->get_param('status'),
--
Gitblit v1.10.0