@@ -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 | /** |
@@ -9,10 +9,10 @@ |
||
| 9 | 9 | |
| 10 | 10 | class SteamController extends Controller |
| 11 | 11 | { |
| 12 | - /** |
|
| 13 | - * Return all data to the Steam API dashboard |
|
| 14 | - * @return mixed |
|
| 15 | - */ |
|
| 12 | + /** |
|
| 13 | + * Return all data to the Steam API dashboard |
|
| 14 | + * @return mixed |
|
| 15 | + */ |
|
| 16 | 16 | public function getPage() |
| 17 | 17 | { |
| 18 | 18 | return view('api.steam'); |
@@ -10,10 +10,10 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | class YahooController extends Controller |
| 12 | 12 | { |
| 13 | - /** |
|
| 14 | - * Instance of Guzzle Client |
|
| 15 | - * @var object |
|
| 16 | - */ |
|
| 13 | + /** |
|
| 14 | + * Instance of Guzzle Client |
|
| 15 | + * @var object |
|
| 16 | + */ |
|
| 17 | 17 | protected $client; |
| 18 | 18 | |
| 19 | 19 | /** |
@@ -27,13 +27,13 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | public function __construct() |
| 29 | 29 | { |
| 30 | - $this->baseUrl = 'https://query.yahooapis.com/v1/public/yql'; |
|
| 31 | - $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
| 30 | + $this->baseUrl = 'https://query.yahooapis.com/v1/public/yql'; |
|
| 31 | + $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
| 32 | 32 | |
| 33 | - $query = "SELECT * FROM weather.forecast WHERE (location = 10007)"; |
|
| 33 | + $query = "SELECT * FROM weather.forecast WHERE (location = 10007)"; |
|
| 34 | 34 | |
| 35 | - $relativeUrl = '?q=' . $query . '&format=json'; |
|
| 36 | - $this->setGetResponse($relativeUrl); |
|
| 35 | + $relativeUrl = '?q=' . $query . '&format=json'; |
|
| 36 | + $this->setGetResponse($relativeUrl); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
@@ -64,10 +64,10 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | |
| 67 | - /** |
|
| 68 | - * Return all data to the Yahoo API dashboard |
|
| 69 | - * @return mixed |
|
| 70 | - */ |
|
| 67 | + /** |
|
| 68 | + * Return all data to the Yahoo API dashboard |
|
| 69 | + * @return mixed |
|
| 70 | + */ |
|
| 71 | 71 | public function getPage() |
| 72 | 72 | { |
| 73 | 73 | $data = $this->getData(); |