Passed
Pull Request — master (#813)
by Alexander
06:06
created
src/Cookies/tests/CookiesTest.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     public function testScope(): void
57 57
     {
58 58
         $core = $this->httpCore([CookiesMiddleware::class]);
59
-        $core->setHandler(function ($r) {
59
+        $core->setHandler(function ($r){
60 60
             $this->assertInstanceOf(
61 61
                 CookieQueue::class,
62 62
                 $this->container->get(ServerRequestInterface::class)
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     public function testSetEncryptedCookie(): void
81 81
     {
82 82
         $core = $this->httpCore([CookiesMiddleware::class]);
83
-        $core->setHandler(function ($r) {
83
+        $core->setHandler(function ($r){
84 84
             $this->container->get(ServerRequestInterface::class)
85 85
                 ->getAttribute(CookieQueue::ATTRIBUTE)->set('name', 'value');
86 86
 
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     public function testSetNotProtectedCookie(): void
103 103
     {
104 104
         $core = $this->httpCore([CookiesMiddleware::class]);
105
-        $core->setHandler(function ($r) {
105
+        $core->setHandler(function ($r){
106 106
             $this->container->get(ServerRequestInterface::class)
107 107
                 ->getAttribute(CookieQueue::ATTRIBUTE)->set('PHPSESSID', 'value');
108 108
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     public function testDecrypt(): void
122 122
     {
123 123
         $core = $this->httpCore([CookiesMiddleware::class]);
124
-        $core->setHandler(function ($r) {
124
+        $core->setHandler(function ($r){
125 125
 
126 126
             /**
127 127
              * @var ServerRequest $r
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
     public function testDecryptArray(): void
140 140
     {
141 141
         $core = $this->httpCore([CookiesMiddleware::class]);
142
-        $core->setHandler(function ($r) {
142
+        $core->setHandler(function ($r){
143 143
 
144 144
             /**
145 145
              * @var ServerRequest $r
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     public function testDecryptBroken(): void
158 158
     {
159 159
         $core = $this->httpCore([CookiesMiddleware::class]);
160
-        $core->setHandler(function ($r) {
160
+        $core->setHandler(function ($r){
161 161
 
162 162
             /**
163 163
              * @var ServerRequest $r
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
             return $r->getCookieParams()['name'];
166 166
         });
167 167
 
168
-        $value = $this->container->get(EncrypterInterface::class)->encrypt('cookie-value') . 'BROKEN';
168
+        $value = $this->container->get(EncrypterInterface::class)->encrypt('cookie-value').'BROKEN';
169 169
 
170 170
         $response = $this->get($core, '/', [], [], ['name' => $value]);
171 171
         $this->assertSame(200, $response->getStatusCode());
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     public function testDelete(): void
176 176
     {
177 177
         $core = $this->httpCore([CookiesMiddleware::class]);
178
-        $core->setHandler(function ($r) {
178
+        $core->setHandler(function ($r){
179 179
             $this->container->get(ServerRequestInterface::class)
180 180
                 ->getAttribute(CookieQueue::ATTRIBUTE)->set('name', 'value');
181 181
 
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
         ]));
204 204
 
205 205
         $core = $this->httpCore([CookiesMiddleware::class]);
206
-        $core->setHandler(function ($r) {
206
+        $core->setHandler(function ($r){
207 207
             $this->container->get(ServerRequestInterface::class)
208 208
                 ->getAttribute(CookieQueue::ATTRIBUTE)->set('name', 'value');
209 209
 
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
         ]));
229 229
 
230 230
         $core = $this->httpCore([CookiesMiddleware::class]);
231
-        $core->setHandler(function ($r) {
231
+        $core->setHandler(function ($r){
232 232
 
233 233
             /**
234 234
              * @var ServerRequest $r
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
         ]));
253 253
 
254 254
         $core = $this->httpCore([CookiesMiddleware::class]);
255
-        $core->setHandler(function ($r) {
255
+        $core->setHandler(function ($r){
256 256
             $this->container->get(ServerRequestInterface::class)
257 257
                 ->getAttribute(CookieQueue::ATTRIBUTE)->set('name', 'value');
258 258
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         $cookies = $this->fetchCookies($response);
267 267
         $this->assertArrayHasKey('name', $cookies);
268 268
 
269
-        $core->setHandler(function ($r) {
269
+        $core->setHandler(function ($r){
270 270
             return $r->getCookieParams()['name'];
271 271
         });
272 272
 
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
     {
327 327
         $result = [];
328 328
 
329
-        foreach ($response->getHeaders() as $line) {
329
+        foreach ($response->getHeaders() as $line){
330 330
             $cookie = explode('=', implode('', $line));
331 331
             $result[$cookie[0]] = rawurldecode(substr(
332 332
                 (string)$cookie[1],
Please login to merge, or discard this patch.
Braces   +24 added lines, -12 removed lines patch added patch discarded remove patch
@@ -56,7 +56,8 @@  discard block
 block discarded – undo
56 56
     public function testScope(): void
57 57
     {
58 58
         $core = $this->httpCore([CookiesMiddleware::class]);
59
-        $core->setHandler(function ($r) {
59
+        $core->setHandler(function ($r)
60
+        {
60 61
             $this->assertInstanceOf(
61 62
                 CookieQueue::class,
62 63
                 $this->container->get(ServerRequestInterface::class)
@@ -80,7 +81,8 @@  discard block
 block discarded – undo
80 81
     public function testSetEncryptedCookie(): void
81 82
     {
82 83
         $core = $this->httpCore([CookiesMiddleware::class]);
83
-        $core->setHandler(function ($r) {
84
+        $core->setHandler(function ($r)
85
+        {
84 86
             $this->container->get(ServerRequestInterface::class)
85 87
                 ->getAttribute(CookieQueue::ATTRIBUTE)->set('name', 'value');
86 88
 
@@ -102,7 +104,8 @@  discard block
 block discarded – undo
102 104
     public function testSetNotProtectedCookie(): void
103 105
     {
104 106
         $core = $this->httpCore([CookiesMiddleware::class]);
105
-        $core->setHandler(function ($r) {
107
+        $core->setHandler(function ($r)
108
+        {
106 109
             $this->container->get(ServerRequestInterface::class)
107 110
                 ->getAttribute(CookieQueue::ATTRIBUTE)->set('PHPSESSID', 'value');
108 111
 
@@ -121,7 +124,8 @@  discard block
 block discarded – undo
121 124
     public function testDecrypt(): void
122 125
     {
123 126
         $core = $this->httpCore([CookiesMiddleware::class]);
124
-        $core->setHandler(function ($r) {
127
+        $core->setHandler(function ($r)
128
+        {
125 129
 
126 130
             /**
127 131
              * @var ServerRequest $r
@@ -139,7 +143,8 @@  discard block
 block discarded – undo
139 143
     public function testDecryptArray(): void
140 144
     {
141 145
         $core = $this->httpCore([CookiesMiddleware::class]);
142
-        $core->setHandler(function ($r) {
146
+        $core->setHandler(function ($r)
147
+        {
143 148
 
144 149
             /**
145 150
              * @var ServerRequest $r
@@ -157,7 +162,8 @@  discard block
 block discarded – undo
157 162
     public function testDecryptBroken(): void
158 163
     {
159 164
         $core = $this->httpCore([CookiesMiddleware::class]);
160
-        $core->setHandler(function ($r) {
165
+        $core->setHandler(function ($r)
166
+        {
161 167
 
162 168
             /**
163 169
              * @var ServerRequest $r
@@ -175,7 +181,8 @@  discard block
 block discarded – undo
175 181
     public function testDelete(): void
176 182
     {
177 183
         $core = $this->httpCore([CookiesMiddleware::class]);
178
-        $core->setHandler(function ($r) {
184
+        $core->setHandler(function ($r)
185
+        {
179 186
             $this->container->get(ServerRequestInterface::class)
180 187
                 ->getAttribute(CookieQueue::ATTRIBUTE)->set('name', 'value');
181 188
 
@@ -203,7 +210,8 @@  discard block
 block discarded – undo
203 210
         ]));
204 211
 
205 212
         $core = $this->httpCore([CookiesMiddleware::class]);
206
-        $core->setHandler(function ($r) {
213
+        $core->setHandler(function ($r)
214
+        {
207 215
             $this->container->get(ServerRequestInterface::class)
208 216
                 ->getAttribute(CookieQueue::ATTRIBUTE)->set('name', 'value');
209 217
 
@@ -228,7 +236,8 @@  discard block
 block discarded – undo
228 236
         ]));
229 237
 
230 238
         $core = $this->httpCore([CookiesMiddleware::class]);
231
-        $core->setHandler(function ($r) {
239
+        $core->setHandler(function ($r)
240
+        {
232 241
 
233 242
             /**
234 243
              * @var ServerRequest $r
@@ -252,7 +261,8 @@  discard block
 block discarded – undo
252 261
         ]));
253 262
 
254 263
         $core = $this->httpCore([CookiesMiddleware::class]);
255
-        $core->setHandler(function ($r) {
264
+        $core->setHandler(function ($r)
265
+        {
256 266
             $this->container->get(ServerRequestInterface::class)
257 267
                 ->getAttribute(CookieQueue::ATTRIBUTE)->set('name', 'value');
258 268
 
@@ -266,7 +276,8 @@  discard block
 block discarded – undo
266 276
         $cookies = $this->fetchCookies($response);
267 277
         $this->assertArrayHasKey('name', $cookies);
268 278
 
269
-        $core->setHandler(function ($r) {
279
+        $core->setHandler(function ($r)
280
+        {
270 281
             return $r->getCookieParams()['name'];
271 282
         });
272 283
 
@@ -326,7 +337,8 @@  discard block
 block discarded – undo
326 337
     {
327 338
         $result = [];
328 339
 
329
-        foreach ($response->getHeaders() as $line) {
340
+        foreach ($response->getHeaders() as $line)
341
+        {
330 342
             $cookie = explode('=', implode('', $line));
331 343
             $result[$cookie[0]] = rawurldecode(substr(
332 344
                 (string)$cookie[1],
Please login to merge, or discard this patch.
src/Csrf/tests/CsrfTest.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $core = $this->httpCore([CsrfMiddleware::class]);
54 54
         $core->setHandler(
55
-            static function ($r) {
55
+            static function ($r){
56 56
                 return $r->getAttribute(CsrfMiddleware::ATTRIBUTE);
57 57
             }
58 58
         );
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
         $core = $this->httpCore([CsrfMiddleware::class]);
84 84
         $core->setHandler(
85
-            static function () {
85
+            static function (){
86 86
                 return 'all good';
87 87
             }
88 88
         );
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $core = $this->httpCore([CsrfMiddleware::class, CsrfFirewall::class]);
96 96
         $core->setHandler(
97
-            static function () {
97
+            static function (){
98 98
                 return 'all good';
99 99
             }
100 100
         );
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $this->expectException(\LogicException::class);
109 109
         $core = $this->httpCore([CsrfFirewall::class]);
110 110
         $core->setHandler(
111
-            static function () {
111
+            static function (){
112 112
                 return 'all good';
113 113
             }
114 114
         );
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     {
121 121
         $core = $this->httpCore([CsrfMiddleware::class, CsrfFirewall::class]);
122 122
         $core->setHandler(
123
-            static function () {
123
+            static function (){
124 124
                 return 'all good';
125 125
             }
126 126
         );
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     {
154 154
         $core = $this->httpCore([CsrfMiddleware::class, CsrfFirewall::class]);
155 155
         $core->setHandler(
156
-            static function () {
156
+            static function (){
157 157
                 return 'all good';
158 158
             }
159 159
         );
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     {
187 187
         $core = $this->httpCore([CsrfMiddleware::class, StrictCsrfFirewall::class]);
188 188
         $core->setHandler(
189
-            static function () {
189
+            static function (){
190 190
                 return 'all good';
191 191
             }
192 192
         );
@@ -277,10 +277,10 @@  discard block
 block discarded – undo
277 277
     {
278 278
         $result = [];
279 279
 
280
-        foreach ($response->getHeaders() as $header) {
281
-            foreach ($header as $headerLine) {
280
+        foreach ($response->getHeaders() as $header){
281
+            foreach ($header as $headerLine){
282 282
                 $chunk = explode(';', $headerLine);
283
-                if (!count($chunk) || mb_strpos($chunk[0], '=') === false) {
283
+                if (!count($chunk) || mb_strpos($chunk[0], '=') === false){
284 284
                     continue;
285 285
                 }
286 286
 
Please login to merge, or discard this patch.
Braces   +20 added lines, -10 removed lines patch added patch discarded remove patch
@@ -52,7 +52,8 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $core = $this->httpCore([CsrfMiddleware::class]);
54 54
         $core->setHandler(
55
-            static function ($r) {
55
+            static function ($r)
56
+            {
56 57
                 return $r->getAttribute(CsrfMiddleware::ATTRIBUTE);
57 58
             }
58 59
         );
@@ -82,7 +83,8 @@  discard block
 block discarded – undo
82 83
 
83 84
         $core = $this->httpCore([CsrfMiddleware::class]);
84 85
         $core->setHandler(
85
-            static function () {
86
+            static function ()
87
+            {
86 88
                 return 'all good';
87 89
             }
88 90
         );
@@ -94,7 +96,8 @@  discard block
 block discarded – undo
94 96
     {
95 97
         $core = $this->httpCore([CsrfMiddleware::class, CsrfFirewall::class]);
96 98
         $core->setHandler(
97
-            static function () {
99
+            static function ()
100
+            {
98 101
                 return 'all good';
99 102
             }
100 103
         );
@@ -108,7 +111,8 @@  discard block
 block discarded – undo
108 111
         $this->expectException(\LogicException::class);
109 112
         $core = $this->httpCore([CsrfFirewall::class]);
110 113
         $core->setHandler(
111
-            static function () {
114
+            static function ()
115
+            {
112 116
                 return 'all good';
113 117
             }
114 118
         );
@@ -120,7 +124,8 @@  discard block
 block discarded – undo
120 124
     {
121 125
         $core = $this->httpCore([CsrfMiddleware::class, CsrfFirewall::class]);
122 126
         $core->setHandler(
123
-            static function () {
127
+            static function ()
128
+            {
124 129
                 return 'all good';
125 130
             }
126 131
         );
@@ -153,7 +158,8 @@  discard block
 block discarded – undo
153 158
     {
154 159
         $core = $this->httpCore([CsrfMiddleware::class, CsrfFirewall::class]);
155 160
         $core->setHandler(
156
-            static function () {
161
+            static function ()
162
+            {
157 163
                 return 'all good';
158 164
             }
159 165
         );
@@ -186,7 +192,8 @@  discard block
 block discarded – undo
186 192
     {
187 193
         $core = $this->httpCore([CsrfMiddleware::class, StrictCsrfFirewall::class]);
188 194
         $core->setHandler(
189
-            static function () {
195
+            static function ()
196
+            {
190 197
                 return 'all good';
191 198
             }
192 199
         );
@@ -277,10 +284,13 @@  discard block
 block discarded – undo
277 284
     {
278 285
         $result = [];
279 286
 
280
-        foreach ($response->getHeaders() as $header) {
281
-            foreach ($header as $headerLine) {
287
+        foreach ($response->getHeaders() as $header)
288
+        {
289
+            foreach ($header as $headerLine)
290
+            {
282 291
                 $chunk = explode(';', $headerLine);
283
-                if (!count($chunk) || mb_strpos($chunk[0], '=') === false) {
292
+                if (!count($chunk) || mb_strpos($chunk[0], '=') === false)
293
+                {
284 294
                     continue;
285 295
                 }
286 296
 
Please login to merge, or discard this patch.
src/AuthHttp/tests/AuthMiddlewareTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 
76 76
         $http->setHandler(
77 77
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
78
-                if ($request->getAttribute('authContext')->getToken() === null) {
78
+                if ($request->getAttribute('authContext')->getToken() === null){
79 79
                     echo 'no token';
80 80
                 }
81 81
             }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,8 @@
 block discarded – undo
75 75
 
76 76
         $http->setHandler(
77 77
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
78
-                if ($request->getAttribute('authContext')->getToken() === null) {
78
+                if ($request->getAttribute('authContext')->getToken() === null)
79
+                {
79 80
                     echo 'no token';
80 81
                 }
81 82
             }
Please login to merge, or discard this patch.
src/AuthHttp/tests/Diactoros/UploadedFileFactory.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         string $clientFilename = null,
27 27
         string $clientMediaType = null
28 28
     ): UploadedFileInterface {
29
-        if ($size === null) {
29
+        if ($size === null){
30 30
             $size = $stream->getSize();
31 31
         }
32 32
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,8 @@
 block discarded – undo
26 26
         string $clientFilename = null,
27 27
         string $clientMediaType = null
28 28
     ): UploadedFileInterface {
29
-        if ($size === null) {
29
+        if ($size === null)
30
+        {
30 31
             $size = $stream->getSize();
31 32
         }
32 33
 
Please login to merge, or discard this patch.
src/AuthHttp/tests/CookieTransportTest.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
 
45 45
         $http->setHandler(
46 46
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
47
-                if ($request->getAttribute('authContext')->getToken() === null) {
47
+                if ($request->getAttribute('authContext')->getToken() === null){
48 48
                     echo 'no token';
49
-                } else {
49
+                }else{
50 50
                     echo $request->getAttribute('authContext')->getToken()->getID();
51 51
                     echo ':';
52 52
                     echo json_encode($request->getAttribute('authContext')->getToken()->getPayload());
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
 
77 77
         $http->setHandler(
78 78
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
79
-                if ($request->getAttribute('authContext')->getToken() === null) {
79
+                if ($request->getAttribute('authContext')->getToken() === null){
80 80
                     echo 'no token';
81
-                } else {
81
+                }else{
82 82
                     echo $request->getAttribute('authContext')->getToken()->getID();
83 83
                     echo ':';
84 84
                     echo json_encode($request->getAttribute('authContext')->getToken()->getPayload());
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         );
192 192
 
193 193
         self::assertSame(
194
-            'Expires=' . gmdate(DATE_COOKIE, time() + 3600),
194
+            'Expires='.gmdate(DATE_COOKIE, time() + 3600),
195 195
             $cookie[1]
196 196
         );
197 197
 
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,9 +43,12 @@  discard block
 block discarded – undo
43 43
 
44 44
         $http->setHandler(
45 45
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
46
-                if ($request->getAttribute('authContext')->getToken() === null) {
46
+                if ($request->getAttribute('authContext')->getToken() === null)
47
+                {
47 48
                     echo 'no token';
48
-                } else {
49
+                }
50
+                else
51
+                {
49 52
                     echo $request->getAttribute('authContext')->getToken()->getID();
50 53
                     echo ':';
51 54
                     echo json_encode($request->getAttribute('authContext')->getToken()->getPayload());
@@ -67,9 +70,12 @@  discard block
 block discarded – undo
67 70
 
68 71
         $http->setHandler(
69 72
             static function (ServerRequestInterface $request, ResponseInterface $response): void {
70
-                if ($request->getAttribute('authContext')->getToken() === null) {
73
+                if ($request->getAttribute('authContext')->getToken() === null)
74
+                {
71 75
                     echo 'no token';
72
-                } else {
76
+                }
77
+                else
78
+                {
73 79
                     echo $request->getAttribute('authContext')->getToken()->getID();
74 80
                     echo ':';
75 81
                     echo json_encode($request->getAttribute('authContext')->getToken()->getPayload());
Please login to merge, or discard this patch.
src/Auth/tests/Stub/TestAuthProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 {
19 19
     public function getActor(TokenInterface $token): ?object
20 20
     {
21
-        if ($token->getPayload()['ok']) {
21
+        if ($token->getPayload()['ok']){
22 22
             return new \stdClass();
23 23
         }
24 24
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
 {
19 19
     public function getActor(TokenInterface $token): ?object
20 20
     {
21
-        if ($token->getPayload()['ok']) {
21
+        if ($token->getPayload()['ok'])
22
+        {
22 23
             return new \stdClass();
23 24
         }
24 25
 
Please login to merge, or discard this patch.
src/AuthHttp/tests/Stub/TestAuthHttpProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 {
19 19
     public function getActor(TokenInterface $token): ?object
20 20
     {
21
-        if ($token->getID() === 'ok') {
21
+        if ($token->getID() === 'ok'){
22 22
             return new \stdClass();
23 23
         }
24 24
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
 {
19 19
     public function getActor(TokenInterface $token): ?object
20 20
     {
21
-        if ($token->getID() === 'ok') {
21
+        if ($token->getID() === 'ok')
22
+        {
22 23
             return new \stdClass();
23 24
         }
24 25
 
Please login to merge, or discard this patch.
src/AuthHttp/tests/Stub/TestAuthHttpStorage.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 {
19 19
     public function load(string $id): ?TokenInterface
20 20
     {
21
-        if ($id === 'bad') {
21
+        if ($id === 'bad'){
22 22
             return null;
23 23
         }
24 24
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
 {
19 19
     public function load(string $id): ?TokenInterface
20 20
     {
21
-        if ($id === 'bad') {
21
+        if ($id === 'bad')
22
+        {
22 23
             return null;
23 24
         }
24 25
 
Please login to merge, or discard this patch.
src/Tokenizer/tests/InvocationsTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     protected function someFunction()
20 20
     {
21 21
         $result = $this->sampleMethod('hello world');
22
-        print_r(self::sampleMethod($result . 'plus'));
22
+        print_r(self::sampleMethod($result.'plus'));
23 23
     }
24 24
 
25 25
     public function testInstance()
Please login to merge, or discard this patch.