Completed
Push — master ( 3d8ad2...d6c4ff )
by Cedric
05:20
created
index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,12 +149,12 @@  discard block
 block discarded – undo
149 149
 });
150 150
 
151 151
 //Catch all route to run our test code
152
-$app->get('/', function (Application $app) {
152
+$app->get('/', function(Application $app) {
153 153
     return $app['twig']->render("index.html.twig");
154 154
 });
155 155
 
156 156
 
157
-$app->get('{url}', function ($url) use ($client) {
157
+$app->get('{url}', function($url) use ($client) {
158 158
     $response = $client->get($url);
159 159
     return new Response(
160 160
         $response->getBody()->getContents(),
Please login to merge, or discard this patch.