@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $emailToSendTo = $request->input('email'); |
| 28 | 28 | $body = $request->input('message'); |
| 29 | 29 | |
| 30 | - Mail::send('emails.contact', ['body' => $body], function ($message) use ($name,$emailToSendTo) { |
|
| 30 | + Mail::send('emails.contact', [ 'body' => $body ], function($message) use ($name, $emailToSendTo) { |
|
| 31 | 31 | $message->from('[email protected]', "From: {$name}"); |
| 32 | 32 | |
| 33 | 33 | $message->to($emailToSendTo)->subject(trans('texts.contact.subject')); |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | /** |
| 11 | 11 | * @var array |
| 12 | 12 | */ |
| 13 | - protected $sampleArtist = ['artist' => 'The Pierces']; |
|
| 13 | + protected $sampleArtist = [ 'artist' => 'The Pierces' ]; |
|
| 14 | 14 | |
| 15 | 15 | /** |
| 16 | 16 | * LastFm Object |
@@ -49,9 +49,9 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | private function getArtistInfo() |
| 51 | 51 | { |
| 52 | - $result = (array)$this->lastfm->artist_getInfo($this->sampleArtist); |
|
| 52 | + $result = (array) $this->lastfm->artist_getInfo($this->sampleArtist); |
|
| 53 | 53 | |
| 54 | - return $result['artist']; |
|
| 54 | + return $result[ 'artist' ]; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -60,9 +60,9 @@ discard block |
||
| 60 | 60 | */ |
| 61 | 61 | private function getTopAlbums() |
| 62 | 62 | { |
| 63 | - $result = (array)$this->lastfm->artist_getTopAlbums($this->sampleArtist); |
|
| 63 | + $result = (array) $this->lastfm->artist_getTopAlbums($this->sampleArtist); |
|
| 64 | 64 | |
| 65 | - return $result['topalbums']->album; |
|
| 65 | + return $result[ 'topalbums' ]->album; |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | /** |
@@ -71,8 +71,8 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | private function getTopTracks() |
| 73 | 73 | { |
| 74 | - $result = (array)$this->lastfm->artist_getTopTracks($this->sampleArtist); |
|
| 74 | + $result = (array) $this->lastfm->artist_getTopTracks($this->sampleArtist); |
|
| 75 | 75 | |
| 76 | - return $result['toptracks']->track; |
|
| 76 | + return $result[ 'toptracks' ]->track; |
|
| 77 | 77 | } |
| 78 | 78 | } |