@@ -38,8 +38,8 @@ |
||
38 | 38 | $tracks = array_slice($this->getTopTracks(), 0, 10); |
39 | 39 | |
40 | 40 | return view('api.lastfm')->withDetails($details) |
41 | - ->withAlbums($albums) |
|
42 | - ->withTracks($tracks); |
|
41 | + ->withAlbums($albums) |
|
42 | + ->withTracks($tracks); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -48,9 +48,9 @@ discard block |
||
48 | 48 | */ |
49 | 49 | private function getArtistInfo() |
50 | 50 | { |
51 | - $result = (array)$this->lastfm->artist_getInfo(['artist' => 'The Pierces']); |
|
51 | + $result = (array) $this->lastfm->artist_getInfo([ 'artist' => 'The Pierces' ]); |
|
52 | 52 | |
53 | - return $result['artist']; |
|
53 | + return $result[ 'artist' ]; |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -59,9 +59,9 @@ discard block |
||
59 | 59 | */ |
60 | 60 | private function getTopAlbums() |
61 | 61 | { |
62 | - $result = (array)$this->lastfm->artist_getTopAlbums(['artist' => 'The Pierces']); |
|
62 | + $result = (array) $this->lastfm->artist_getTopAlbums([ 'artist' => 'The Pierces' ]); |
|
63 | 63 | |
64 | - return $result['topalbums']->album; |
|
64 | + return $result[ 'topalbums' ]->album; |
|
65 | 65 | } |
66 | 66 | |
67 | 67 | /** |
@@ -70,8 +70,8 @@ discard block |
||
70 | 70 | */ |
71 | 71 | private function getTopTracks() |
72 | 72 | { |
73 | - $result = (array)$this->lastfm->artist_getTopTracks(['artist' => 'The Pierces']); |
|
73 | + $result = (array) $this->lastfm->artist_getTopTracks([ 'artist' => 'The Pierces' ]); |
|
74 | 74 | |
75 | - return $result['toptracks']->track; |
|
75 | + return $result[ 'toptracks' ]->track; |
|
76 | 76 | } |
77 | 77 | } |