@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function __construct() |
| 24 | 24 | { |
| 25 | - $this->lastfm = new LastFm(new Browser); |
|
| 26 | - $this->lastfm->setApiKey(env('LASTFM_API_KEY')); |
|
| 25 | + $this->lastfm = new LastFm(new Browser); |
|
| 26 | + $this->lastfm->setApiKey(env('LASTFM_API_KEY')); |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | /** |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | $tracks = array_slice($this->getTopTracks(), 0, 10); |
| 40 | 40 | |
| 41 | 41 | return view('api.lastfm')->withDetails($details) |
| 42 | - ->withAlbums($albums) |
|
| 43 | - ->withTracks($tracks); |
|
| 42 | + ->withAlbums($albums) |
|
| 43 | + ->withTracks($tracks); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | /** |
@@ -27,11 +27,11 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function __construct() |
| 29 | 29 | { |
| 30 | - $this->baseUrl = 'http://api.nytimes.com/svc'; |
|
| 31 | - $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
| 30 | + $this->baseUrl = 'http://api.nytimes.com/svc'; |
|
| 31 | + $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
| 32 | 32 | |
| 33 | - $relativeUrl = '/books/v3/lists/overview.json?api-key=' . env('NYT_BOOKS_API_KEY'); |
|
| 34 | - $this->setGetResponse($relativeUrl); |
|
| 33 | + $relativeUrl = '/books/v3/lists/overview.json?api-key=' . env('NYT_BOOKS_API_KEY'); |
|
| 34 | + $this->setGetResponse($relativeUrl); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | /** |