@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | $html = preg_replace_callback( |
27 | 27 | '/(<form\s[^>]*method="?POST"?[^>]*>)/i', |
28 | - function ($match) use ($input) { |
|
28 | + function($match) use ($input) { |
|
29 | 29 | return $match[0].$input; |
30 | 30 | }, |
31 | 31 | $html, |
@@ -77,7 +77,7 @@ |
||
77 | 77 | */ |
78 | 78 | public static function create(callable $factory) |
79 | 79 | { |
80 | - return function (RequestInterface $request, ResponseInterface $response, callable $next) use ($factory) { |
|
80 | + return function(RequestInterface $request, ResponseInterface $response, callable $next) use ($factory) { |
|
81 | 81 | $middleware = $factory(); |
82 | 82 | |
83 | 83 | if ($middleware === false) { |
@@ -69,14 +69,14 @@ |
||
69 | 69 | list($first, $last) = $range; |
70 | 70 | $size = $response->getBody()->getSize(); |
71 | 71 | |
72 | - if ($last === null) { |
|
72 | + if ($last === null) { |
|
73 | 73 | $last = $size - 1; |
74 | 74 | } |
75 | 75 | |
76 | 76 | return $response |
77 | 77 | ->withStatus(206) |
78 | 78 | ->withHeader('Content-Length', (string) ($last - $first + 1)) |
79 | - ->withHeader('Content-Range', sprintf('bytes %d-%d/%d', $first, $last, $size)); |
|
79 | + ->withHeader('Content-Range', sprintf('bytes %d-%d/%d', $first, $last, $size)); |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |