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

diff --git a/inc/rest/routes/ApprovalRoutes.php b/inc/rest/routes/ApprovalRoutes.php
index 963ff45..63b8eb2 100644
--- a/inc/rest/routes/ApprovalRoutes.php
+++ b/inc/rest/routes/ApprovalRoutes.php
@@ -179,16 +179,14 @@
      * @param string $taxonomy Taxonomy
      * @param string $name New Term Name
      * @param int $parent Parent Term ID
-     * @param int $required_approvals Number of approvals required
-     *
+	 *
      * @return int|false Request ID or false on failure
      */
 	public function createTermApprovalRequest(
 		int $user_id,
 		string $taxonomy,
 		string $name,
-		int $parent = 0,
-		int $required_approvals = 3
+		int $parent = 0
 	): int|false {
 
 		$result = Approvals::getInstance()->createApproval(
@@ -204,7 +202,7 @@
 	{
 		$user_id = get_current_user_id();
 		$type = sanitize_text_field($request->get_param('type') ?? 'all');
-		$status = sanitize_text_field($request->get_param('status') ?? 'pending');
+//		$status = sanitize_text_field($request->get_param('status') ?? 'pending');
 
 		$result = Approvals::getInstance()->getApprovalRequests($user_id, $type === 'all' ? null : $type);
 

--
Gitblit v1.10.0