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/managers/ImageGenerator.php |   36 +++++++++++++++++++++---------------
 1 files changed, 21 insertions(+), 15 deletions(-)

diff --git a/inc/managers/ImageGenerator.php b/inc/managers/ImageGenerator.php
index 2636de7..2807753 100644
--- a/inc/managers/ImageGenerator.php
+++ b/inc/managers/ImageGenerator.php
@@ -97,9 +97,11 @@
     /**
      * Generate the artist card
      */
-    /**
-     * @return array
-     */
+	/**
+	 * @return array
+	 * @throws Exception
+	 * @throws Exception
+	 */
     public function generate():array
     {
         // Generate appropriate filename
@@ -132,12 +134,14 @@
         ];
     }
 
-    /**
-     * Create WordPress attachment from generated image
-     * @param string $file_path
-     *
-     * @return int|WP_Error
-     */
+	/**
+	 * Create WordPress attachment from generated image
+	 * @param string $file_path
+	 *
+	 * @return int|WP_Error
+	 * @throws Exception
+	 * @throws Exception
+	 */
     protected function createAttachment(string $file_path):int|WP_Error
     {
         // Get upload directory based on user/content structure
@@ -560,12 +564,14 @@
         }
     }
 
-    /**
-     * Create gradient background with Imagick
-     * @param Imagick $canvas
-     * @param string $color Center color
-     * @return void
-     */
+	/**
+	 * Create gradient background with Imagick
+	 * @param Imagick $canvas
+	 * @param string $color Center color
+	 * @return void
+	 * @throws ImagickException
+	 * @throws ImagickException
+	 */
     protected function createGradientBackgroundImagick(Imagick $canvas, string $color): void
     {
         $width = $canvas->getImageWidth();

--
Gitblit v1.10.0