Apply fixes from StyleCI (#633)

This commit is contained in:
Phan An 2017-08-05 23:27:41 +01:00 committed by GitHub
parent f344b4c3fa
commit 7ec5cfb2af
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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" : ''),