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/queue/Metrics.php | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/inc/managers/queue/Metrics.php b/inc/managers/queue/Metrics.php
index a3a7b7d..5a600ae 100644
--- a/inc/managers/queue/Metrics.php
+++ b/inc/managers/queue/Metrics.php
@@ -1,5 +1,8 @@
<?php
namespace JVBase\managers\queue;
+use DateTimeInterface;
+use wpdb;
+
if (!defined('ABSPATH')) {
exit;
}
@@ -7,7 +10,7 @@
final class Metrics
{
public function __construct(
- private \wpdb $db,
+ private wpdb $db,
private string $queueTable,
private string $statsTable
) {}
@@ -147,8 +150,8 @@
/* ---------- Historical metrics (stats table) ---------- */
public function dailySummary(
- \DateTimeInterface $from,
- \DateTimeInterface $to
+ DateTimeInterface $from,
+ DateTimeInterface $to
): array {
$sql = "
SELECT
@@ -179,8 +182,8 @@
public function dailyByType(
- \DateTimeInterface $from,
- \DateTimeInterface $to
+ DateTimeInterface $from,
+ DateTimeInterface $to
): array {
$sql = "
SELECT
--
Gitblit v1.10.0