@@ -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 | } |
@@ -13,10 +13,10 @@ discard block |
||
13 | 13 | |
14 | 14 | class LinkedInController extends Controller |
15 | 15 | { |
16 | - /** |
|
17 | - * LinkedIn API base Url |
|
18 | - * @var string |
|
19 | - */ |
|
16 | + /** |
|
17 | + * LinkedIn API base Url |
|
18 | + * @var string |
|
19 | + */ |
|
20 | 20 | protected $baseUrl; |
21 | 21 | |
22 | 22 | /** |
@@ -31,19 +31,19 @@ discard block |
||
31 | 31 | */ |
32 | 32 | protected $response; |
33 | 33 | |
34 | - /** |
|
35 | - * Initialize the Controller with necessary arguments |
|
36 | - */ |
|
34 | + /** |
|
35 | + * Initialize the Controller with necessary arguments |
|
36 | + */ |
|
37 | 37 | public function __construct() |
38 | 38 | { |
39 | 39 | $this->baseUrl = 'https://api.linkedin.com/v1'; |
40 | 40 | $this->client = new Client(['base_uri' => $this->baseUrl]); |
41 | 41 | } |
42 | 42 | |
43 | - /** |
|
44 | - * Set options for making the Client request |
|
45 | - * @return void |
|
46 | - */ |
|
43 | + /** |
|
44 | + * Set options for making the Client request |
|
45 | + * @return void |
|
46 | + */ |
|
47 | 47 | private function setRequestOptions() |
48 | 48 | { |
49 | 49 | $authBearer = 'Bearer '. Auth::user()->getAccessToken(); |