Completed
Pull Request — master (#31)
by Patrick
09:29
created
tests/MockOAuth2Server.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     public function getHandler()
25 25
     {
26
-        return new MockHandler(function (array $request) {
26
+        return new MockHandler(function(array $request) {
27 27
             return $this->getResult($request);
28 28
         });
29 29
     }
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,4 +4,4 @@
 block discarded – undo
4 4
  * A script containing any set-up steps required for PHPUnit testing.
5 5
  */
6 6
 
7
-require __DIR__ . '/../vendor/autoload.php';
7
+require __DIR__.'/../vendor/autoload.php';
Please login to merge, or discard this patch.
tests/GrantType/JwtBearerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $grantType = new JwtBearer($this->createClient(), [
39 39
             'client_id' => 'testClient',
40 40
             'client_secret' => 'clientSecret',
41
-            'private_key' => new SplFileObject(__DIR__ . '/../private.key')
41
+            'private_key' => new SplFileObject(__DIR__.'/../private.key')
42 42
         ]);
43 43
         $token = $grantType->getToken();
44 44
         $this->assertNotEmpty($token->getToken());
Please login to merge, or discard this patch.
src/Oauth2Subscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         if ($request->getConfig()->get('auth') == 'oauth2') {
103 103
             $token = $this->getAccessToken();
104 104
             if ($token !== null) {
105
-                $request->setHeader('Authorization', 'Bearer ' . $token->getToken());
105
+                $request->setHeader('Authorization', 'Bearer '.$token->getToken());
106 106
             }
107 107
         }
108 108
     }
Please login to merge, or discard this patch.