@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | public function __construct() |
36 | 36 | { |
37 | 37 | $this->baseUrl = self::LINKEDIN_API; |
38 | - $this->client = new Client(['base_uri' => $this->baseUrl]); |
|
38 | + $this->client = new Client([ 'base_uri' => $this->baseUrl ]); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -44,13 +44,13 @@ discard block |
||
44 | 44 | */ |
45 | 45 | private function setRequestOptions() |
46 | 46 | { |
47 | - $authBearer = 'Bearer '. Auth::user()->getAccessToken(); |
|
48 | - $this->client = new Client(['base_uri' => $this->baseUrl, |
|
47 | + $authBearer = 'Bearer '.Auth::user()->getAccessToken(); |
|
48 | + $this->client = new Client([ 'base_uri' => $this->baseUrl, |
|
49 | 49 | 'headers' => [ |
50 | 50 | 'Authorization' => $authBearer, |
51 | 51 | 'Content-Type' => 'application/json', |
52 | 52 | 'Accept' => 'application/json' |
53 | - ]]); |
|
53 | + ] ]); |
|
54 | 54 | } |
55 | 55 | |
56 | 56 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | */ |
60 | 60 | private function setGetResponse($relativeUrl) |
61 | 61 | { |
62 | - $this->response = $this->client->get($this->baseUrl . $relativeUrl, []); |
|
62 | + $this->response = $this->client->get($this->baseUrl.$relativeUrl, [ ]); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |