@@ -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'); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $list = (array)SlackUser::lists(); |
32 | 32 | |
33 | 33 | if (is_null($count)) { |
34 | - return $list['members']; |
|
34 | + return $list['members']; |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | return array_slice($list['members'], 0, $count); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public function sendMessageToTeam(Request $request) |
46 | 46 | { |
47 | - $this->validate($request, [ |
|
47 | + $this->validate($request, [ |
|
48 | 48 | 'message' => 'required' |
49 | 49 | ]); |
50 | 50 |
@@ -41,8 +41,8 @@ |
||
41 | 41 | */ |
42 | 42 | private function getData() |
43 | 43 | { |
44 | - $data = Facebook::get('/me?fields=id,name,cover,email,gender,first_name,last_name,locale,timezone,link,picture', Auth::user()->getAccessToken()); |
|
44 | + $data = Facebook::get('/me?fields=id,name,cover,email,gender,first_name,last_name,locale,timezone,link,picture', Auth::user()->getAccessToken()); |
|
45 | 45 | |
46 | - return json_decode($data->getGraphUser(),true); |
|
46 | + return json_decode($data->getGraphUser(),true); |
|
47 | 47 | } |
48 | 48 | } |
@@ -16,9 +16,9 @@ |
||
16 | 16 | */ |
17 | 17 | protected $foursquare; |
18 | 18 | |
19 | - /** |
|
20 | - * Initialize the Controller with necessary arguments |
|
21 | - */ |
|
19 | + /** |
|
20 | + * Initialize the Controller with necessary arguments |
|
21 | + */ |
|
22 | 22 | public function __construct() |
23 | 23 | { |
24 | 24 | $this->foursquare = new FoursquareApi(env('FOURSQUARE_CLIENT_ID'), env('FOURSQUARE_CLIENT_SECRET')); |
@@ -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 | /** |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | 5 | use Illuminate\Http\Request; |
6 | -use App\Http\Requests; |
|
7 | 6 | use MJErwin\Clockwork\ClockworkClient; |
8 | 7 | use MJErwin\Clockwork\Message; |
9 | 8 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | 5 | use GuzzleHttp\Client; |
6 | -use App\Http\Requests; |
|
7 | 6 | |
8 | 7 | class NytController extends Controller |
9 | 8 | { |
@@ -27,9 +27,9 @@ |
||
27 | 27 | */ |
28 | 28 | public function __construct() |
29 | 29 | { |
30 | - $this->baseUrl = self::API_URL; |
|
31 | - $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
32 | - $this->setGetResponse($this->getRelativeUrl()); |
|
30 | + $this->baseUrl = self::API_URL; |
|
31 | + $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
32 | + $this->setGetResponse($this->getRelativeUrl()); |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Http\Request; |
6 | 6 | use App\User; |
7 | -use App\Http\Requests; |
|
8 | 7 | use Illuminate\Contracts\Auth\Guard; |
9 | 8 | use Laravel\Socialite\Contracts\Factory as Socialite; |
10 | 9 | use Session; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace App\Http\Controllers; |
4 | 4 | |
5 | -use App\Http\Requests; |
|
6 | 5 | use Goutte\Client; |
7 | 6 | |
8 | 7 | class WebScrapingController extends Controller |