@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | public function userDetails($data, TokenCredentials $tokenCredentials) |
35 | 35 | { |
36 | - $data = json_decode(json_encode($data),TRUE)['Organisations']['Organisation']; |
|
36 | + $data = json_decode(json_encode($data),TRUE)['Organisations']['Organisation']; |
|
37 | 37 | |
38 | 38 | if (!isset($data) || !is_array($data)) return; |
39 | 39 |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | public function userDetails($data, TokenCredentials $tokenCredentials) |
35 | 35 | { |
36 | - $data = json_decode(json_encode($data),TRUE)['Organisations']['Organisation']; |
|
36 | + $data = json_decode(json_encode($data), TRUE)['Organisations']['Organisation']; |
|
37 | 37 | |
38 | 38 | if (!isset($data) || !is_array($data)) return; |
39 | 39 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $user->nickname = $data['Name']; |
44 | 44 | $user->name = $data['LegalName']; |
45 | 45 | $user->location = $data['CountryCode']; |
46 | - $user->description = $data['LineOfBusiness'] . ' ' . $data['OrganisationEntityType']; |
|
46 | + $user->description = $data['LineOfBusiness'].' '.$data['OrganisationEntityType']; |
|
47 | 47 | $user->imageUrl = null; |
48 | 48 | $user->email = null; |
49 | 49 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | |
56 | 56 | public function userUid($data, TokenCredentials $tokenCredentials) |
57 | 57 | { |
58 | - $data = json_decode(json_encode($data),TRUE)['Organisations']['Organisation']; |
|
58 | + $data = json_decode(json_encode($data), TRUE)['Organisations']['Organisation']; |
|
59 | 59 | return $data['APIKey']; |
60 | 60 | |
61 | 61 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | public function userScreenName($data, TokenCredentials $tokenCredentials) |
69 | 69 | { |
70 | - $data = json_decode(json_encode($data),TRUE)['Organisations']['Organisation']; |
|
70 | + $data = json_decode(json_encode($data), TRUE)['Organisations']['Organisation']; |
|
71 | 71 | return $data['Name']; |
72 | 72 | } |
73 | 73 |
@@ -35,7 +35,9 @@ |
||
35 | 35 | { |
36 | 36 | $data = json_decode(json_encode($data),TRUE)['Organisations']['Organisation']; |
37 | 37 | |
38 | - if (!isset($data) || !is_array($data)) return; |
|
38 | + if (!isset($data) || !is_array($data)) { |
|
39 | + return; |
|
40 | + } |
|
39 | 41 | |
40 | 42 | $user = new User(); |
41 | 43 |