Completed
Push — master ( d6c4ff...7a55c4 )
by Cedric
02:46
created
src/Entity/Descriptor.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -246,7 +246,6 @@
 block discarded – undo
246 246
 
247 247
     /**
248 248
      * @param string $name
249
-     * @param array  $description
250 249
      *
251 250
      * @return $this
252 251
      */
Please login to merge, or discard this patch.
index.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
  * this is needed to sign our request and to validate the requests from the application.
25 25
  */
26 26
 $payload = new Payload('payload.json');
27
-$applicationKey =  'eu.adlogix.atlassian-connect';
27
+$applicationKey = 'eu.adlogix.atlassian-connect';
28 28
 
29 29
 
30 30
 /**
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
  * You can validate your descriptor
91 91
  * @see https://atlassian-connect-validator.herokuapp.com/validate
92 92
  */
93
-$app->get('/descriptor.json', function (Request $request) use ($applicationKey) {
93
+$app->get('/descriptor.json', function(Request $request) use ($applicationKey) {
94 94
 
95 95
     /*
96 96
      * We have to construct the correct URL in order to confluence be able to contact us
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
  * They will give us a payload containing the sharedSecret we'll need to use to sign our request.
121 121
  * For the demo we just save the content to a file.
122 122
  */
123
-$app->post('/installed', function (Request $request) {
123
+$app->post('/installed', function(Request $request) {
124 124
 
125 125
     $payload = $request->getContent();
126 126
     file_put_contents('payload.json', $payload);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
  * Even if the documentation tell's you the only needed webhook is the installed one,
137 137
  * they won't let you enable the add-on unless you define the route to you 'enabled' webhook.
138 138
  */
139
-$app->post('/enabled', function () {
139
+$app->post('/enabled', function() {
140 140
     /**
141 141
      * Be sure to send a 200 OK response, or the app will tell you that your plugin can't be enabled.
142 142
      */
@@ -144,12 +144,12 @@  discard block
 block discarded – undo
144 144
 });
145 145
 
146 146
 //Catch all route to run our test code
147
-$app->get('/', function (Application $app) {
147
+$app->get('/', function(Application $app) {
148 148
     return $app['twig']->render("index.html.twig");
149 149
 });
150 150
 
151 151
 
152
-$app->get('{url}', function ($url) use ($client) {
152
+$app->get('{url}', function($url) use ($client) {
153 153
     $response = $client->get($url);
154 154
     return new Response(
155 155
         $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
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  * this is needed to sign our request and to validate the requests from the application.
22 22
  */
23 23
 $payload = new Payload('payload.json');
24
-$applicationKey =  'eu.adlogix.atlassian-connect';
24
+$applicationKey = 'eu.adlogix.atlassian-connect';
25 25
 
26 26
 
27 27
 /**
Please login to merge, or discard this patch.