From 5b50afdcafd150186ea5c7b0e1cad98065590b35 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Fri, 28 Aug 2026 18:44:28 +0000
Subject: [PATCH] =A few more phpStorm suggestions, mainly in PHPDocs
---
inc/managers/OperationQueue.php | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/inc/managers/OperationQueue.php b/inc/managers/OperationQueue.php
index 77ba35a..8dba76a 100644
--- a/inc/managers/OperationQueue.php
+++ b/inc/managers/OperationQueue.php
@@ -5,6 +5,7 @@
use WP_Error;
use WP_REST_Response;
use WP_REST_Request;
+use wpdb;
if (!defined('ABSPATH')) {
exit; // Exit if accessed directly
@@ -27,7 +28,7 @@
protected string $table = BASE.'_operation_queue';
protected string $metricsTable = BASE.'stats__operation_queue';
protected int $max_attempts = 3;
- protected \wpdb $wpdb;
+ protected wpdb $wpdb;
// System load thresholds
protected array $load_thresholds = [
@@ -59,7 +60,7 @@
{
global $wpdb;
$this->wpdb = $wpdb;
- $this->cache = Cache::for('queue', DAY_IN_SECONDS)->connect('user')->user();
+ $this->cache = Cache::for('queue', 'user',DAY_IN_SECONDS)->user();
add_action('jvb_process_queue', [ $this, 'checkQueue' ]);
add_action('jvb_queue_maintenance', [$this, 'hourlyMaintenance']);
add_action('jvbEmailDailyMetricsReport', [$this, 'emailDailyMetricsReport']);
@@ -1394,7 +1395,7 @@
*
* @param object $operation The current operation
*
- * @return bool|array false if not batched, the extracted data to process if batchable
+ * @return array false if not batched, the extracted data to process if batchable
*/
protected function getNextChunk(object $operation): array
{
--
Gitblit v1.10.0