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/helpers/ui.php | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/inc/helpers/ui.php b/inc/helpers/ui.php
index 9ea9e3b..c9872d2 100644
--- a/inc/helpers/ui.php
+++ b/inc/helpers/ui.php
@@ -207,9 +207,14 @@
return $out;
}
-
/**
* Outputs the search bar (likely don't need anymore)
+ * @param string $placeholder
+ * @param string $id
+ * @param string $label
+ * @param string $buttonText
+ * @param bool $buttonInside
+ * @param bool $hideSearch
* @return string
*/
function jvbSearch(string $placeholder = 'Search...', string $id = 'search', string $label = '', string $buttonText = '', bool $buttonInside = false, bool $hideSearch = false):string
@@ -248,11 +253,12 @@
}
/**
- * Formats an image to match our image replacement formatting
- * @param int|string $imgID
+ * Formats an image to match our image replacement formatting
+ * @param int $imgID
* @param string $start
* @param string $end
- *
+ * @param bool $addLink
+ * @param string|null $postSlug
* @return string
*/
function jvbFormatImage(int $imgID, string $start = 'tiny', string $end = 'large', bool $addLink = true, ?string $postSlug = null):string
--
Gitblit v1.10.0