mirror of
https://github.com/koel/koel
synced 2024-11-10 14:44:13 +00:00
Apply fixes from StyleCI (#633)
This commit is contained in:
parent
f344b4c3fa
commit
7ec5cfb2af
2 changed files with 3 additions and 3 deletions
|
@ -12,9 +12,9 @@ class MediaCache
|
|||
protected $keyName = 'media_cache';
|
||||
|
||||
/**
|
||||
* Get media data.
|
||||
* Get media data.
|
||||
* If caching is enabled, the data will be retrieved from the cache.
|
||||
*
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function get()
|
||||
|
|
|
@ -51,7 +51,7 @@ class iTunes
|
|||
public function getTrackUrl($term, $album = '', $artist = '')
|
||||
{
|
||||
try {
|
||||
return Cache::remember(md5("itunes_track_url_{$term}{$album}{$artist}"), 24 * 60 * 7,
|
||||
return Cache::remember(md5("itunes_track_url_{$term}{$album}{$artist}"), 24 * 60 * 7,
|
||||
function () use ($term, $album, $artist) {
|
||||
$params = [
|
||||
'term' => $term.($album ? " $album" : '').($artist ? " $artist" : ''),
|
||||
|
|
Loading…
Reference in a new issue