Completed
Pull Request — master (#138)
by Roma
01:33
created
src/Providers/LinkedinProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             ],
102 102
         ]);
103 103
 
104
-        return (array) json_decode($response->getBody(), true);
104
+        return (array)json_decode($response->getBody(), true);
105 105
     }
106 106
 
107 107
     /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             ],
123 123
         ]);
124 124
 
125
-        return (array) $this->arrayItem(json_decode($response->getBody(), true), 'elements.0.handle~');
125
+        return (array)$this->arrayItem(json_decode($response->getBody(), true), 'elements.0.handle~');
126 126
     }
127 127
 
128 128
     /**
@@ -135,12 +135,12 @@  discard block
 block discarded – undo
135 135
         $lastName = $this->arrayItem($user, 'lastName.localized.'.$preferredLocale);
136 136
         $name = $firstName.' '.$lastName;
137 137
 
138
-        $images = (array) $this->arrayItem($user, 'profilePicture.displayImage~.elements', []);
139
-        $avatars = array_filter($images, function ($image) {
138
+        $images = (array)$this->arrayItem($user, 'profilePicture.displayImage~.elements', []);
139
+        $avatars = array_filter($images, function($image) {
140 140
             return $image['data']['com.linkedin.digitalmedia.mediaartifact.StillImage']['storageSize']['width'] === 100;
141 141
         });
142 142
         $avatar = array_shift($avatars);
143
-        $originalAvatars = array_filter($images, function ($image) {
143
+        $originalAvatars = array_filter($images, function($image) {
144 144
             return $image['data']['com.linkedin.digitalmedia.mediaartifact.StillImage']['storageSize']['width'] === 800;
145 145
         });
146 146
         $originalAvatar = array_shift($originalAvatars);
Please login to merge, or discard this patch.