Completed
Pull Request — master (#1)
by Nile
03:52
created
src/Xero.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,9 @@
 block discarded – undo
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
         
Please login to merge, or discard this patch.