@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | ]; |
105 | 105 | |
106 | 106 | $response = $this->getHttpClient()->post( |
107 | - $this->getUserByCode . '?' . http_build_query($queryParams), |
|
107 | + $this->getUserByCode.'?'.http_build_query($queryParams), |
|
108 | 108 | [ |
109 | 109 | 'json' => ['tmp_auth_code' => $code], |
110 | 110 | ] |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $response = \json_decode($response->getBody()->getContents(), true); |
113 | 113 | |
114 | 114 | if (0 != $response['errcode'] ?? 1) { |
115 | - throw new \InvalidArgumentException('You get error: ' . json_encode($response, JSON_UNESCAPED_UNICODE)); |
|
115 | + throw new \InvalidArgumentException('You get error: '.json_encode($response, JSON_UNESCAPED_UNICODE)); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | return new User( |
@@ -100,11 +100,11 @@ |
||
100 | 100 | $name = $firstName.' '.$lastName; |
101 | 101 | |
102 | 102 | $images = $user['profilePicture.displayImage~.elements'] ?? []; |
103 | - $avatars = array_filter($images, function ($image) { |
|
103 | + $avatars = array_filter($images, function($image) { |
|
104 | 104 | return ($image['data']['com.linkedin.digitalmedia.mediaartifact.StillImage']['storageSize']['width'] ?? 0) === 100; |
105 | 105 | }); |
106 | 106 | $avatar = array_shift($avatars); |
107 | - $originalAvatars = array_filter($images, function ($image) { |
|
107 | + $originalAvatars = array_filter($images, function($image) { |
|
108 | 108 | return ($image['data']['com.linkedin.digitalmedia.mediaartifact.StillImage']['storageSize']['width'] ?? 0) === 800; |
109 | 109 | }); |
110 | 110 | $originalAvatar = array_shift($originalAvatars); |