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

---
 src/summary/render.php |   27 ++++++++++-----------------
 1 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/src/summary/render.php b/src/summary/render.php
index 4602359..3be4bb3 100644
--- a/src/summary/render.php
+++ b/src/summary/render.php
@@ -19,12 +19,10 @@
 
     // Buffer output
     if (is_tax()) {
-        switch (get_queried_object()->taxonomy) {
-            case BASE.'shop':
-                return jvbRenderShopSummary();
-            default:
-                return jvbRenderTermSummary();
-        }
+		return match (get_queried_object()->taxonomy) {
+		    BASE . 'shop' => jvbRenderShopSummary(),
+		    default => jvbRenderTermSummary(),
+	    };
     } elseif (is_singular()) {
         return jvbRenderArtistSummary();
     }
@@ -152,7 +150,7 @@
         <h2>Contact <?=$artist['name']?></h2>
         <?php
         echo jvbRenderContactInfo($current->ID, 'post');
-        echo jvbRenderLinks($current->ID, 'post');
+        echo jvbRenderLinks($current->ID);
         ?>
     </section>
     <?php
@@ -294,16 +292,11 @@
 
     ob_start();
 	$tax = jvbNoBase($current->taxonomy);
-    switch ($tax) {
-        case 'style':
-            $title = 'Tattoo Artists';
-            break;
-        case 'theme':
-            $title = 'Tattoos';
-            break;
-        default:
-            $title = '';
-    }
+	$title = match ($tax) {
+		'style' => 'Tattoo Artists',
+		'theme' => 'Tattoos',
+		default => '',
+	};
 
     $meta = Meta::forTerm($current->ID);
     $fields = $meta->getAll();

--
Gitblit v1.10.0