inc/managers/ImageGenerator.php
@@ -99,6 +99,8 @@ */ /** * @return array * @throws Exception * @throws Exception */ public function generate():array { @@ -137,6 +139,8 @@ * @param string $file_path * * @return int|WP_Error * @throws Exception * @throws Exception */ protected function createAttachment(string $file_path):int|WP_Error { @@ -565,6 +569,8 @@ * @param Imagick $canvas * @param string $color Center color * @return void * @throws ImagickException * @throws ImagickException */ protected function createGradientBackgroundImagick(Imagick $canvas, string $color): void {