Completed
Branch master (1197be)
by Toni
07:07
created
Category
index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
  * You can validate your descriptor
89 89
  * @see https://atlassian-connect-validator.herokuapp.com/validate
90 90
  */
91
-$app->get('/descriptor.json', function (Request $request) {
91
+$app->get('/descriptor.json', function(Request $request) {
92 92
 
93 93
     /*
94 94
      * We have to construct the correct URL in order to confluence be able to contact us
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
  * They will give us a payload containing the sharedSecret we'll need to use to sign our request.
124 124
  * For the demo we just save the content to a file.
125 125
  */
126
-$app->post('/installed', function (Request $request) {
126
+$app->post('/installed', function(Request $request) {
127 127
 
128 128
     $payload = $request->getContent();
129 129
     file_put_contents('payload.json', $payload);
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
  * Even if the documentation tell's you the only needed webhook is the installed one,
140 140
  * they won't let you enable the add-on unless you define the route to you 'enabled' webhook.
141 141
  */
142
-$app->post('/enabled', function () {
142
+$app->post('/enabled', function() {
143 143
     /**
144 144
      * Be sure to send a 200 OK response, or the app will tell you that your plugin can't be enabled.
145 145
      */
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 });
148 148
 
149 149
 //Catch all route to run our test code
150
-$app->match('{url}', function ($url) use ($client) {
150
+$app->match('{url}', function($url) use ($client) {
151 151
     $response = $client->get('space');
152 152
 
153 153
     var_dump($response->getBody()->getContents());
Please login to merge, or discard this patch.
playground.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
  */
62 62
 $client = new Client(
63 63
     [
64
-        'base_uri' => $baseUrl.'/rest/api/',
64
+        'base_uri' => $baseUrl . '/rest/api/',
65 65
         'handler'  => $stack,
66 66
         'debug'    => true
67 67
     ]
Please login to merge, or discard this patch.
src/Middleware/ConnectMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.