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/registrar/helpers/MakeTimelineType.php | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/inc/registrar/helpers/MakeTimelineType.php b/inc/registrar/helpers/MakeTimelineType.php
index 84ea959..972e07c 100644
--- a/inc/registrar/helpers/MakeTimelineType.php
+++ b/inc/registrar/helpers/MakeTimelineType.php
@@ -1,10 +1,6 @@
<?php
namespace JVBase\registrar\helpers;
-use JVBase\meta\Meta;
-use JVBase\registrar\Registrar;
-use WP_Post;
-
if (!defined('ABSPATH')) {
exit;
}
@@ -12,11 +8,9 @@
class MakeTimelineType {
protected string $slug;
protected string $postType;
- protected Registrar $registrar;
- public function __construct(string $slug, Registrar $registrar) {
+ public function __construct(string $slug) {
$this->slug = $slug;
$this->postType = jvbCheckBase($slug);
- $this->registrar = $registrar;
add_action('template_redirect', [$this, 'redirectChildToParent']);
}
--
Gitblit v1.10.0