mirror of
https://github.com/koel/koel
synced 2024-11-24 13:13:05 +00:00
Use isUnknown
This commit is contained in:
parent
f6733dcae6
commit
b356800a32
1 changed files with 4 additions and 4 deletions
|
@ -65,12 +65,12 @@ class Artist extends Model
|
|||
|
||||
/**
|
||||
* Get extra information about the artist from Last.fm.
|
||||
*
|
||||
*
|
||||
* @return array|false
|
||||
*/
|
||||
public function getInfo()
|
||||
{
|
||||
if ($this->id === self::UNKNOWN_ID) {
|
||||
if ($this->isUnknown()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -100,9 +100,9 @@ class Artist extends Model
|
|||
|
||||
/**
|
||||
* Turn the image name into its absolute URL.
|
||||
*
|
||||
*
|
||||
* @param mixed $value
|
||||
*
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getImageAttribute($value)
|
||||
|
|
Loading…
Reference in a new issue