Failed Conditions
Push — master ( 9635a1...82855d )
by Florent
14:04
created
src/Component/Server/Tests/Stub/Container.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.
src/Component/Server/Tests/Stub/UriExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.
src/Component/Server/Tests/Context/HybridFlowContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.
src/Component/Server/Tests/Context/ClientCredentialsGrantTypeContext.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             'grant_type' => 'client_credentials',
86 86
             'scope' => 'email phone address',
87 87
         ]);
88
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client5:secret'));
88
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client5:secret'));
89 89
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
90 90
 
91 91
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request));
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             'grant_type' => 'client_credentials',
103 103
             'scope' => 'email phone address',
104 104
         ]);
105
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
105
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
106 106
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
107 107
 
108 108
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request));
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             'grant_type' => 'client_credentials',
120 120
             'scope' => 'email phone address',
121 121
         ]);
122
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('DISABLED_CLIENT:secret'));
122
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('DISABLED_CLIENT:secret'));
123 123
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
124 124
 
125 125
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request));
Please login to merge, or discard this patch.
src/Component/Server/Tests/Context/RefreshTokenGrantTypeContext.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $request = $request->withParsedBody([
52 52
             'grant_type' => 'refresh_token',
53 53
         ]);
54
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
54
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
55 55
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
56 56
 
57 57
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request));
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
             'grant_type' => 'refresh_token',
69 69
             'refresh_token' => 'EXPIRED_REFRESH_TOKEN',
70 70
         ]);
71
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
71
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
72 72
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
73 73
 
74 74
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request));
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             'grant_type' => 'refresh_token',
86 86
             'refresh_token' => 'REVOKED_REFRESH_TOKEN',
87 87
         ]);
88
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
88
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
89 89
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
90 90
 
91 91
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request));
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
             'grant_type' => 'refresh_token',
103 103
             'refresh_token' => 'VALID_REFRESH_TOKEN',
104 104
         ]);
105
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
105
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
106 106
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
107 107
 
108 108
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenEndpointPipe()->dispatch($request));
Please login to merge, or discard this patch.
src/Component/Server/Tests/Context/ClientContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.
src/Component/Server/Tests/Context/RevocationContext.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $request = $request->withMethod('POST');
77 77
         $request = $request->withParsedBody([
78 78
         ]);
79
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
79
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
80 80
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
81 81
 
82 82
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $request = $request->withMethod('GET');
92 92
         $request = $request->withQueryParams([
93 93
         ]);
94
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
94
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
95 95
 
96 96
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
97 97
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         $request = $request->withParsedBody([
107 107
             'callback' => 'foo',
108 108
         ]);
109
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
109
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
110 110
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
111 111
 
112 112
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         $request = $request->withQueryParams([
123 123
             'callback' => 'foo',
124 124
         ]);
125
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
125
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
126 126
 
127 127
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
128 128
     }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $request = $request->withParsedBody([
138 138
             'token' => 'ACCESS_TOKEN_#1',
139 139
         ]);
140
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
140
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
141 141
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
142 142
 
143 143
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
         $request = $request->withQueryParams([
154 154
             'token' => 'ACCESS_TOKEN_#1',
155 155
         ]);
156
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
156
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
157 157
 
158 158
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
159 159
     }
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
         $request = $request->withParsedBody([
169 169
             'token' => 'ACCESS_TOKEN_#2',
170 170
         ]);
171
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
171
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
172 172
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
173 173
 
174 174
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $request = $request->withQueryParams([
185 185
             'token' => 'ACCESS_TOKEN_#2',
186 186
         ]);
187
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
187
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
188 188
 
189 189
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
190 190
     }
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             'token' => 'ACCESS_TOKEN_#2',
201 201
             'token_type_hint' => 'bad_hint',
202 202
         ]);
203
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
203
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
204 204
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
205 205
 
206 206
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             'token' => 'ACCESS_TOKEN_#2',
218 218
             'token_type_hint' => 'bad_hint',
219 219
         ]);
220
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
220
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
221 221
 
222 222
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
223 223
     }
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
             'token_type_hint' => 'refresh_token',
235 235
         ]);
236 236
         $request = $request->withHeader('Content-Type', 'application/x-www-form-urlencoded');
237
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
237
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
238 238
 
239 239
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
240 240
     }
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
             'token' => 'UNKNOWN_REFRESH_TOKEN_#2',
251 251
             'token_type_hint' => 'refresh_token',
252 252
         ]);
253
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
253
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
254 254
 
255 255
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
256 256
     }
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
             'token_type_hint' => 'refresh_token',
268 268
             'callback' => 'callback',
269 269
         ]);
270
-        $request = $request->withHeader('Authorization', 'Basic ' . base64_encode('client1:secret'));
270
+        $request = $request->withHeader('Authorization', 'Basic '.base64_encode('client1:secret'));
271 271
 
272 272
         $this->responseContext->setResponse($this->applicationContext->getApplication()->getTokenRevocationPipe()->dispatch($request));
273 273
     }
Please login to merge, or discard this patch.
src/Component/Server/Tests/Context/IntrospectionContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.
src/Component/Server/Tests/Context/ResponseContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * The MIT License (MIT)
Please login to merge, or discard this patch.