@@ -48,7 +48,7 @@ |
||
| 48 | 48 | */ |
| 49 | 49 | public function __invoke(callable $handler) |
| 50 | 50 | { |
| 51 | - return function (RequestInterface $request, array $options) use (&$handler) { |
|
| 51 | + return function(RequestInterface $request, array $options) use (&$handler) { |
|
| 52 | 52 | |
| 53 | 53 | $url = rawurldecode(str_replace($this->appContext, "", $request->getUri())); |
| 54 | 54 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * You can validate your descriptor |
| 90 | 90 | * @see https://atlassian-connect-validator.herokuapp.com/validate |
| 91 | 91 | */ |
| 92 | -$app->get('/descriptor.json', function (Request $request) { |
|
| 92 | +$app->get('/descriptor.json', function(Request $request) { |
|
| 93 | 93 | |
| 94 | 94 | /* |
| 95 | 95 | * We have to construct the correct URL in order to confluence be able to contact us |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | * They will give us a payload containing the sharedSecret we'll need to use to sign our request. |
| 126 | 126 | * For the demo we just save the content to a file. |
| 127 | 127 | */ |
| 128 | -$app->post('/installed', function (Request $request) { |
|
| 128 | +$app->post('/installed', function(Request $request) { |
|
| 129 | 129 | |
| 130 | 130 | $payload = $request->getContent(); |
| 131 | 131 | file_put_contents('payload.json', $payload); |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | * Even if the documentation tell's you the only needed webhook is the installed one, |
| 142 | 142 | * they won't let you enable the add-on unless you define the route to you 'enabled' webhook. |
| 143 | 143 | */ |
| 144 | -$app->post('/enabled', function () { |
|
| 144 | +$app->post('/enabled', function() { |
|
| 145 | 145 | /** |
| 146 | 146 | * Be sure to send a 200 OK response, or the app will tell you that your plugin can't be enabled. |
| 147 | 147 | */ |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | }); |
| 150 | 150 | |
| 151 | 151 | //Catch all route to run our test code |
| 152 | -$app->match('{url}', function () use ($client) { |
|
| 152 | +$app->match('{url}', function() use ($client) { |
|
| 153 | 153 | $response = $client->get('space'); |
| 154 | 154 | |
| 155 | 155 | var_dump($response->getBody()->getContents()); |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | $path = str_replace(' ', '%20', $path); |
| 89 | 89 | |
| 90 | 90 | if ('/' !== $path[0]) { |
| 91 | - $path = '/'.$path; |
|
| 91 | + $path = '/' . $path; |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | return $path; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | */ |
| 62 | 62 | $client = new Client( |
| 63 | 63 | [ |
| 64 | - 'base_uri' => $baseUrl.'/', |
|
| 64 | + 'base_uri' => $baseUrl . '/', |
|
| 65 | 65 | 'handler' => $stack, |
| 66 | 66 | 'debug' => true |
| 67 | 67 | ] |