Completed
Push — master ( c31839...5a747f )
by Cees-Jan
05:42 queued 04:10
created
src/WithHeadersMiddleware.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace WyriHaximus\React\Http\Middleware;
4 4
 
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
 final class WithHeadersMiddleware
10 10
 {
11
-    private $headers = [];
11
+    private $headers = [ ];
12 12
 
13 13
     /**
14 14
      * @param array $headers
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function __invoke(ServerRequestInterface $request, callable $next)
22 22
     {
23
-        return resolve($next($request))->then(function (ResponseInterface $response) {
23
+        return resolve($next($request))->then(function(ResponseInterface $response) {
24 24
             foreach ($this->headers as $header => $value) {
25 25
                 $response = $response->withHeader($header, $value);
26 26
             }
Please login to merge, or discard this patch.