Completed
Push — master ( cb1c93...765941 )
by Carlos
01:25
created
src/Providers/DingTalk.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/Providers/Linkedin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,11 +100,11 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.