From 7a9054bb3f033c98067b3196378311dae54c5fbf Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Tue, 20 Jan 2026 01:31:53 +0000
Subject: [PATCH] =OperationQueue refactor to the JVBase/managers/queue namespace

---
 inc/rest/routes/Invitations.php |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/inc/rest/routes/Invitations.php b/inc/rest/routes/Invitations.php
index 4022790..5c7638a 100644
--- a/inc/rest/routes/Invitations.php
+++ b/inc/rest/routes/Invitations.php
@@ -86,16 +86,14 @@
         $toTerm = (array_key_exists('to_term', $data)) ? (int)$data['to_term'] : false;
         $taxonomy = (array_key_exists('taxonomy', $data) && in_array($data['taxonomy'], $this->inviteTypes[$role]['to_terms']??[])) ? $data['taxonomy'] : false;
 
-        $args = [
-            'user'        => (array_key_exists('user', $data)) ? (int)$data['user'] : false,
-            'role'         => $role,
-            'to_term'     => $toTerm,
-            'taxonomy'     => $taxonomy,
-            'status'    => array_key_exists('status', $data) && in_array($data['status'], ['all', 'pending', 'accepted', 'rejected', 'expired', 'revoked']) ? $data['status'] : 'all',
-            'page'        => array_key_exists('page', $data) ? (int)$data['page'] : 1,
-        ];
-
-        return $args;
+		return [
+			'user'        => (array_key_exists('user', $data)) ? (int)$data['user'] : false,
+			'role'         => $role,
+			'to_term'     => $toTerm,
+			'taxonomy'     => $taxonomy,
+			'status'    => array_key_exists('status', $data) && in_array($data['status'], ['all', 'pending', 'accepted', 'rejected', 'expired', 'revoked']) ? $data['status'] : 'all',
+			'page'        => array_key_exists('page', $data) ? (int)$data['page'] : 1,
+		];
     }
     /**
      * @param object $request the request object

--
Gitblit v1.10.0