Completed
Push — master ( d7683b...50beb4 )
by Michał
02:17
created
id/protocols/oauth2/Provider.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
     /**
90 90
      * {@inheritDoc}
91 91
      *
92
-     * @param   oauth2\Token    $token
92
+     * @param   auth\interfaces\Token    $token
93 93
      */
94 94
     public function request(string $method, string $url, auth\interfaces\Token $token = null, array $options = []) : Promise
95 95
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
                 'grant_type'    => 'authorization_code',
72 72
                 'code'          => $code
73 73
             ]
74
-        ])->then(function (array $data) {
74
+        ])->then(function(array $data) {
75 75
             return $this->createToken($data);
76 76
         });
77 77
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function identify(oauth2\Token $token) : Promise
83 83
     {
84
-        return $this->request('GET', $this->getIdentifyUrl(), $token)->then(function (array $data) use ($token) {
84
+        return $this->request('GET', $this->getIdentifyUrl(), $token)->then(function(array $data) use ($token) {
85 85
             return $this->createIdentity($token, $data);
86 86
         });
87 87
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     public function request(string $method, string $url, auth\interfaces\Token $token = null, array $options = []) : Promise
95 95
     {
96 96
         return $this->getHttpClient()->requestAsync($method, $url, array_merge_recursive($this->getDefaultRequestOptions($token), $options))->then(
97
-            function (Response $response) use($token) {
97
+            function(Response $response) use($token) {
98 98
                 return $this->onRequestSuccess($response, $token);
99 99
             },
100 100
             function(\Exception $exception) use($token) {
Please login to merge, or discard this patch.
id/protocols/oauth2/providers/Github.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,10 +50,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.