@@ -43,9 +43,9 @@ |
||
43 | 43 | public function getIdentifyUrl() : string |
44 | 44 | { |
45 | 45 | $fields = [ |
46 | - 'id', 'first-name', 'last-name', 'formatted-name', |
|
47 | - 'email-address', 'headline', 'location', 'industry', |
|
48 | - 'public-profile-url', 'picture-url', |
|
46 | + 'id', 'first-name', 'last-name', 'formatted-name', |
|
47 | + 'email-address', 'headline', 'location', 'industry', |
|
48 | + 'public-profile-url', 'picture-url', |
|
49 | 49 | ]; |
50 | 50 | |
51 | 51 | // Talk about proprietary 'standards'... |
@@ -50,10 +50,10 @@ discard block |
||
50 | 50 | // Intercept the flow - instead of directly returning a Promise for the entity's identity data, |
51 | 51 | // we will now return a Promise that resolves once both the email and identity |
52 | 52 | // data have been resolved and the email has been mapped into the identity data. |
53 | - $promise = $this->getEmail($token)->then(function ($email) use ($token, $promise) { |
|
53 | + $promise = $this->getEmail($token)->then(function($email) use ($token, $promise) { |
|
54 | 54 | |
55 | 55 | // Map the e-mail address in once the identity data is available (has successfully resolved). |
56 | - return $promise->then(function (array $data) use ($token, $email) { |
|
56 | + return $promise->then(function(array $data) use ($token, $email) { |
|
57 | 57 | |
58 | 58 | $data['email'] = $email ?? $data['email']; |
59 | 59 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | }); |
63 | 63 | } |
64 | 64 | |
65 | - return $promise->then(function (array $data) use ($token) { |
|
65 | + return $promise->then(function(array $data) use ($token) { |
|
66 | 66 | return $this->createIdentity($token, $data); |
67 | 67 | }); |
68 | 68 | } |