@@ -111,7 +111,7 @@ |
||
| 111 | 111 | public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next) |
| 112 | 112 | { |
| 113 | 113 | if ($this->whoops) { |
| 114 | - $this->whoops->pushHandler(function ($exception) use ($request, $response) { |
|
| 114 | + $this->whoops->pushHandler(function($exception) use ($request, $response) { |
|
| 115 | 115 | try { |
| 116 | 116 | echo self::executeTarget($this->handler, $this->arguments, Middleware::setAttribute($request, self::KEY, $exception), $response)->getBody(); |
| 117 | 117 | } catch (\Exception $exception) {} |
@@ -120,13 +120,13 @@ |
||
| 120 | 120 | if ($this->inlineCss) { |
| 121 | 121 | $cssMinify = new CssMinify(); |
| 122 | 122 | |
| 123 | - $options['cssMinifier'] = function ($css) use ($cssMinify) { |
|
| 123 | + $options['cssMinifier'] = function($css) use ($cssMinify) { |
|
| 124 | 124 | return $cssMinify->run($css); |
| 125 | 125 | }; |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | if ($this->inlineJs) { |
| 129 | - $options['jsMinifier'] = function ($js) { |
|
| 129 | + $options['jsMinifier'] = function($js) { |
|
| 130 | 130 | return JsMinify::minify($js); |
| 131 | 131 | }; |
| 132 | 132 | } |
@@ -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) { |