From f4613aa9af363fa5eb9b8dd6f667c9cae1a1d055 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Wed, 1 May 2024 23:55:48 -0500 Subject: [PATCH] Fix docblocks --- lib/Artwork.php | 18 +++++++++--------- lib/Image.php | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/Artwork.php b/lib/Artwork.php index e35f87b2..641f3847 100644 --- a/lib/Artwork.php +++ b/lib/Artwork.php @@ -178,7 +178,7 @@ class Artwork extends Accessor{ } /** - *@throws Exceptions\InvalidArtworkException + * @throws Exceptions\InvalidArtworkException */ protected function GetImageUrl(): string{ if($this->_ImageUrl === null){ @@ -193,7 +193,7 @@ class Artwork extends Accessor{ } /** - *@throws Exceptions\ArtworkNotFoundException + * @throws Exceptions\ArtworkNotFoundException */ protected function GetThumbUrl(): string{ if($this->_ThumbUrl === null){ @@ -208,7 +208,7 @@ class Artwork extends Accessor{ } /** - *@throws Exceptions\ArtworkNotFoundException + * @throws Exceptions\ArtworkNotFoundException */ protected function GetThumb2xUrl(): string{ if($this->_Thumb2xUrl === null){ @@ -316,7 +316,7 @@ class Artwork extends Accessor{ } /** - *@throws Exceptions\ValidationException + * @throws Exceptions\ValidationException */ protected function Validate(?string $imagePath = null, bool $isImageRequired = true): void{ $now = new DateTimeImmutable(); @@ -635,8 +635,8 @@ class Artwork extends Accessor{ } /** - *@throws Exceptions\ValidationException - *@throws Exceptions\InvalidImageUploadException + * @throws Exceptions\ValidationException + * @throws Exceptions\InvalidImageUploadException */ public function Create(?string $imagePath = null): void{ $this->MimeType = ImageMimeType::FromFile($imagePath); @@ -698,7 +698,7 @@ class Artwork extends Accessor{ } /** - *@throws Exceptions\ValidationException + * @throws Exceptions\ValidationException */ public function Save(?string $imagePath = null): void{ $this->_UrlName = null; @@ -812,7 +812,7 @@ class Artwork extends Accessor{ // *********** /** - *@throws Exceptions\ArtworkNotFoundException + * @throws Exceptions\ArtworkNotFoundException */ public static function Get(?int $artworkId): Artwork{ if($artworkId === null){ @@ -829,7 +829,7 @@ class Artwork extends Accessor{ } /** - *@throws Exceptions\InvalidArtworkException + * @throws Exceptions\ArtworkNotFoundException */ public static function GetByUrl(?string $artistUrlName, ?string $artworkUrlName): Artwork{ if($artistUrlName === null || $artworkUrlName === null){ diff --git a/lib/Image.php b/lib/Image.php index 9b4fd7f8..1c2f806b 100644 --- a/lib/Image.php +++ b/lib/Image.php @@ -43,7 +43,7 @@ class Image{ /** * @return resource - *@throws Exceptions\InvalidImageUploadException + * @throws Exceptions\InvalidImageUploadException */ private function GetImageHandleFromTiff(){ $tempFilename = sys_get_temp_dir() . '/se-' . pathinfo($this->Path)['filename'] . '.jpg';