Completed
Push — master ( 88a770...3d8ad2 )
by Cedric
05:17 queued 02:24
created
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.
index.php 1 patch
Spacing   +4 added lines, -4 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,7 +149,7 @@  discard block
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/Helpers/Qsh.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
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;
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.'/',
64
+        'base_uri' => $baseUrl . '/',
65 65
         'handler'  => $stack,
66 66
         'debug'    => true
67 67
     ]
Please login to merge, or discard this patch.