Completed
Push — master ( a0318a...ed4471 )
by Oscar
02:30
created
src/Middleware/ErrorHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
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) {}
Please login to merge, or discard this patch.
src/Middleware/Minify.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,13 +120,13 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Utils/FormTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
src/Middleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.