Jake Vanderwerf
2026-08-28 a9654f00c8fbc9934289d761843ddd071025013f
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