Fix docblocks

This commit is contained in:
Alex Cabal 2024-05-01 23:55:48 -05:00
parent de76531589
commit f4613aa9af
2 changed files with 10 additions and 10 deletions

View file

@ -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){

View file

@ -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';