diff --git a/lib/Artist.php b/lib/Artist.php index 8df1f1dd..3470d388 100644 --- a/lib/Artist.php +++ b/lib/Artist.php @@ -5,23 +5,21 @@ use function Safe\date; /** * @property string $UrlName * @property array $AlternateSpellings + * @property array $_AlternateSpellings */ class Artist extends PropertiesBase{ - public $ArtistId; - public $Name; - public $DeathYear; - public $Created; - public $Updated; - protected $_UrlName; - protected $_AlternateSpellings; + public ?int $ArtistId; + public ?string $Name; + public ?int $DeathYear; + public ?datetime $Created; + public ?datetime $Updated; + protected ?string $_UrlName; + protected $_AlternateSpellings; // ******* // GETTERS // ******* - /** - * @return string - */ protected function GetUrlName(): string{ if($this->Name === null || $this->Name == ''){ return ''; diff --git a/lib/Artwork.php b/lib/Artwork.php index 2b396c63..0f62bde4 100644 --- a/lib/Artwork.php +++ b/lib/Artwork.php @@ -3,11 +3,9 @@ use Safe\DateTime; use function Safe\copy; use function Safe\date; use function Safe\exec; -use function Safe\filesize; use function Safe\getimagesize; use function Safe\ini_get; use function Safe\preg_replace; -use function Safe\sprintf; /** * @property string $UrlName diff --git a/lib/ArtworkTag.php b/lib/ArtworkTag.php index af51197a..7a9f2dc5 100644 --- a/lib/ArtworkTag.php +++ b/lib/ArtworkTag.php @@ -5,9 +5,6 @@ class ArtworkTag extends Tag{ // GETTERS // ******* - /** - * @return string - */ protected function GetUrl(): string{ if($this->_Url === null){ $this->_Url = '/artworks?query=' . Formatter::MakeUrlSafe($this->Name);