Passed
Push — main ( 109ace...7d6b92 )
by Dimitri
17:05
created
src/Http/MiddlewareRunner.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $this->queue    = $queue;
39 39
         $this->fallback = $fallback;
40 40
         $this->queue->rewind();
41
-		$this->queue->resolveGroups();
41
+        $this->queue->resolveGroups();
42 42
 
43 43
         return $this->handle($request);
44 44
     }
Please login to merge, or discard this patch.
src/Http/MiddlewareQueue.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -43,8 +43,8 @@  discard block
 block discarded – undo
43 43
 
44 44
     /**
45 45
      * Groupes de middlewares
46
-	 *
47
-	 * @var array<string, array>
46
+     *
47
+     * @var array<string, array>
48 48
      */
49 49
     protected array $groups = [];
50 50
 
@@ -314,10 +314,10 @@  discard block
 block discarded – undo
314 314
     public function register(array $config)
315 315
     {
316 316
         $config += [
317
-			'aliases' => [],
318
-			'globals' => [],
319
-			'groups'  => [],
320
-			'build'   => static fn () => null,
317
+            'aliases' => [],
318
+            'globals' => [],
319
+            'groups'  => [],
320
+            'build'   => static fn () => null,
321 321
         ];
322 322
 
323 323
         $this->aliases($config['aliases']);
@@ -335,31 +335,31 @@  discard block
 block discarded – undo
335 335
         }
336 336
     }
337 337
 
338
-	/**
339
-	 * Resout les groups pour definir les middlewares
340
-	 *
341
-	 * @internal
342
-	 */
343
-	public function resolveGroups()
344
-	{
345
-		foreach ($this->queue as $queue) {
346
-			if (is_string($queue) && !empty($this->groups[$queue])) {
347
-				if (! is_array($this->groups[$queue])) {
348
-					continue;
349
-				}
350
-
351
-				$i = array_search($queue, $this->queue);
352
-				$j = 0;
353
-
354
-				unset($this->queue[$i]);
355
-
356
-				foreach ($this->groups[$queue] as $middleware) {
357
-					$this->insertAt(($i + $j), $middleware);
358
-					$j++;
359
-				}
360
-			}
361
-		}
362
-	}
338
+    /**
339
+     * Resout les groups pour definir les middlewares
340
+     *
341
+     * @internal
342
+     */
343
+    public function resolveGroups()
344
+    {
345
+        foreach ($this->queue as $queue) {
346
+            if (is_string($queue) && !empty($this->groups[$queue])) {
347
+                if (! is_array($this->groups[$queue])) {
348
+                    continue;
349
+                }
350
+
351
+                $i = array_search($queue, $this->queue);
352
+                $j = 0;
353
+
354
+                unset($this->queue[$i]);
355
+
356
+                foreach ($this->groups[$queue] as $middleware) {
357
+                    $this->insertAt(($i + $j), $middleware);
358
+                    $j++;
359
+                }
360
+            }
361
+        }
362
+    }
363 363
 
364 364
     /**
365 365
      * {@internal}
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      */
252 252
     public function seek(int $position): void
253 253
     {
254
-        if (! isset($this->queue[$position])) {
254
+        if (!isset($this->queue[$position])) {
255 255
             throw new OutOfBoundsException(sprintf('Invalid seek position (%s).', $position));
256 256
         }
257 257
 
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      */
272 272
     public function current(): MiddlewareInterface
273 273
     {
274
-        if (! isset($this->queue[$this->position])) {
274
+        if (!isset($this->queue[$this->position])) {
275 275
             throw new OutOfBoundsException(sprintf('Position actuelle non valide (%s).', $this->position));
276 276
         }
277 277
 
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
 	{
345 345
 		foreach ($this->queue as $queue) {
346 346
 			if (is_string($queue) && !empty($this->groups[$queue])) {
347
-				if (! is_array($this->groups[$queue])) {
347
+				if (!is_array($this->groups[$queue])) {
348 348
 					continue;
349 349
 				}
350 350
 
Please login to merge, or discard this patch.