@@ -52,13 +52,13 @@ discard block |
||
52 | 52 | |
53 | 53 | // copy private key so we can set correct permissions, file gets removed when tests finish |
54 | 54 | $path = $this->getPrivateKeyPath(); |
55 | - file_put_contents($path, file_get_contents(__DIR__ . '/' . self::$privateKeyFile)); |
|
55 | + file_put_contents($path, file_get_contents(__DIR__.'/'.self::$privateKeyFile)); |
|
56 | 56 | chmod($path, 0660); |
57 | 57 | Environment::setEnv('OAUTH_PRIVATE_KEY_PATH', $path); |
58 | 58 | |
59 | 59 | // copy public key |
60 | 60 | $path = $this->getPublicKeyPath(); |
61 | - file_put_contents($path, file_get_contents(__DIR__ . '/' . self::$publicKeyFile)); |
|
61 | + file_put_contents($path, file_get_contents(__DIR__.'/'.self::$publicKeyFile)); |
|
62 | 62 | chmod($path, 0660); |
63 | 63 | Environment::setEnv('OAUTH_PUBLIC_KEY_PATH', $path); |
64 | 64 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | $response = new Response(); |
98 | 98 | $response = $server->respondToAccessTokenRequest($request, $response); |
99 | 99 | |
100 | - $data = json_decode((string)$response->getBody(), true); |
|
100 | + $data = json_decode((string) $response->getBody(), true); |
|
101 | 101 | $token = $data['access_token']; |
102 | 102 | |
103 | 103 | // check for fn/ln |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | |
109 | 109 | // create request |
110 | 110 | $request = new HTTPRequest('GET', '/'); |
111 | - $request->addHeader('authorization', 'Bearer ' . $token); |
|
111 | + $request->addHeader('authorization', 'Bearer '.$token); |
|
112 | 112 | // fake server port |
113 | 113 | $_SERVER['SERVER_PORT'] = 443; |
114 | 114 | |
@@ -147,12 +147,12 @@ discard block |
||
147 | 147 | $response = new Response(); |
148 | 148 | $response = $server->respondToAccessTokenRequest($request, $response); |
149 | 149 | |
150 | - $data = json_decode((string)$response->getBody(), true); |
|
150 | + $data = json_decode((string) $response->getBody(), true); |
|
151 | 151 | $token = $data['access_token']; |
152 | 152 | |
153 | 153 | // create request |
154 | 154 | $request = new HTTPRequest('GET', '/grqphql'); |
155 | - $request->addHeader('authorization', 'Bearer ' . $token); |
|
155 | + $request->addHeader('authorization', 'Bearer '.$token); |
|
156 | 156 | // fake server port |
157 | 157 | $_SERVER['SERVER_PORT'] = 443; |
158 | 158 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | $manager = new Manager('myschema'); |
178 | 178 | |
179 | 179 | // extract the context |
180 | - $manager->addMiddleware(new GraphQLSchemaExtractor(function ($currentContext) use (&$context) { |
|
180 | + $manager->addMiddleware(new GraphQLSchemaExtractor(function($currentContext) use (&$context) { |
|
181 | 181 | $context = $currentContext; |
182 | 182 | })); |
183 | 183 | |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | */ |
279 | 279 | protected function getPrivateKeyPath() |
280 | 280 | { |
281 | - return sys_get_temp_dir() . '/' . self::$privateKeyFile; |
|
281 | + return sys_get_temp_dir().'/'.self::$privateKeyFile; |
|
282 | 282 | } |
283 | 283 | |
284 | 284 | /** |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | */ |
289 | 289 | protected function getPublicKeyPath() |
290 | 290 | { |
291 | - return sys_get_temp_dir() . '/' . self::$publicKeyFile; |
|
291 | + return sys_get_temp_dir().'/'.self::$publicKeyFile; |
|
292 | 292 | } |
293 | 293 | |
294 | 294 | /** |