@@ -26,6 +26,9 @@ discard block |
||
| 26 | 26 | return $this->execute(($request->has('code') || $request->has('oauth_token')), $provider); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param boolean $request |
|
| 31 | + */ |
|
| 29 | 32 | public function execute($request, $provider) |
| 30 | 33 | { |
| 31 | 34 | if (! $request) { |
@@ -41,6 +44,7 @@ discard block |
||
| 41 | 44 | /** |
| 42 | 45 | * Find a user by username or create a new user |
| 43 | 46 | * @param |
| 47 | + * @param \Laravel\Socialite\Contracts\User $userData |
|
| 44 | 48 | * @return |
| 45 | 49 | */ |
| 46 | 50 | public function findByProviderIdOrCreate($userData, $provider) |
@@ -103,7 +107,7 @@ discard block |
||
| 103 | 107 | /** |
| 104 | 108 | * Get Data from Social Media Account |
| 105 | 109 | * @param string $provider |
| 106 | - * @return collection |
|
| 110 | + * @return \Laravel\Socialite\Contracts\User |
|
| 107 | 111 | */ |
| 108 | 112 | private function getSocialUser($provider) |
| 109 | 113 | { |
@@ -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'); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Scrape the Links |
| 36 | - * @param $siteToCrawl |
|
| 36 | + * @param string $siteToCrawl |
|
| 37 | 37 | * @return array |
| 38 | 38 | */ |
| 39 | 39 | public function getData($siteToCrawl) |
@@ -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(); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | /** |
| 37 | 37 | * Send a Text Message |
| 38 | 38 | * @param Request $request |
| 39 | - * @return string |
|
| 39 | + * @return \Illuminate\Http\RedirectResponse |
|
| 40 | 40 | */ |
| 41 | 41 | public function sendTextMessage(Request $request) |
| 42 | 42 | { |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | |
| 34 | 34 | /** |
| 35 | 35 | * Get all delivery routes for this zip code |
| 36 | - * @param string $zipcdode |
|
| 36 | + * @param string $zipcode |
|
| 37 | 37 | * @return array |
| 38 | 38 | */ |
| 39 | 39 | private function getRoutes($zipcode) |
@@ -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 | } |