Completed
Push — master ( f48619...b2e6ed )
by Conrad
03:17 queued 01:58
created
tests/GraphqlTest.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@  discard block
 block discarded – undo
51 51
 
52 52
         // copy private key so we can set correct permissions, file gets removed when tests finish
53 53
         $path = $this->getPrivateKeyPath();
54
-        file_put_contents($path, file_get_contents(__DIR__ . '/' . self::$privateKeyFile));
54
+        file_put_contents($path, file_get_contents(__DIR__.'/'.self::$privateKeyFile));
55 55
         chmod($path, 0660);
56 56
         Environment::setEnv('OAUTH_PRIVATE_KEY_PATH', $path);
57 57
 
58 58
         // copy public key
59 59
         $path = $this->getPublicKeyPath();
60
-        file_put_contents($path, file_get_contents(__DIR__ . '/' . self::$publicKeyFile));
60
+        file_put_contents($path, file_get_contents(__DIR__.'/'.self::$publicKeyFile));
61 61
         chmod($path, 0660);
62 62
         Environment::setEnv('OAUTH_PUBLIC_KEY_PATH', $path);
63 63
 
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $response = new Response();
97 97
         $response = $server->respondToAccessTokenRequest($request, $response);
98 98
 
99
-        $data = json_decode((string)$response->getBody(), true);
99
+        $data = json_decode((string) $response->getBody(), true);
100 100
         $token = $data['access_token'];
101 101
 
102 102
         // check for fn/ln
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 
108 108
         // create request
109 109
         $request = new HTTPRequest('GET', '/');
110
-        $request->addHeader('authorization', 'Bearer ' . $token);
110
+        $request->addHeader('authorization', 'Bearer '.$token);
111 111
         // fake server port
112 112
         $_SERVER['SERVER_PORT'] = 443;
113 113
 
@@ -146,12 +146,12 @@  discard block
 block discarded – undo
146 146
         $response = new Response();
147 147
         $response = $server->respondToAccessTokenRequest($request, $response);
148 148
 
149
-        $data = json_decode((string)$response->getBody(), true);
149
+        $data = json_decode((string) $response->getBody(), true);
150 150
         $token = $data['access_token'];
151 151
 
152 152
         // create request
153 153
         $request = new HTTPRequest('GET', '/grqphql');
154
-        $request->addHeader('authorization', 'Bearer ' . $token);
154
+        $request->addHeader('authorization', 'Bearer '.$token);
155 155
         // fake server port
156 156
         $_SERVER['SERVER_PORT'] = 443;
157 157
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
      */
246 246
     protected function getPrivateKeyPath()
247 247
     {
248
-        return sys_get_temp_dir() . '/' . self::$privateKeyFile;
248
+        return sys_get_temp_dir().'/'.self::$privateKeyFile;
249 249
     }
250 250
 
251 251
     /**
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      */
256 256
     protected function getPublicKeyPath()
257 257
     {
258
-        return sys_get_temp_dir() . '/' . self::$publicKeyFile;
258
+        return sys_get_temp_dir().'/'.self::$publicKeyFile;
259 259
     }
260 260
 
261 261
     /**
Please login to merge, or discard this patch.