Completed
Push — master ( ee4b65...5b7038 )
by Iqbal
02:53
created
src/RouterListener.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
         if (is_string($handler)) {
142 142
             return $this->compileStringHandler($route, $request, $handler);
143 143
         } elseif (is_callable($handler)) {
144
-            return $this->dispatchMiddlewares($route, function () use ($handler, $request) {
144
+            return $this->dispatchMiddlewares($route, function() use ($handler, $request) {
145 145
                 return $this->container->getDi()->call($handler, (array) $request->getParameters());
146 146
             });
147 147
         }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
             ));
177 177
         }
178 178
 
179
-        return $this->dispatchMiddlewares($route, function () use ($parameters, $controller, $action) {
179
+        return $this->dispatchMiddlewares($route, function() use ($parameters, $controller, $action) {
180 180
             if (!$this->responseEvent->hasResponse()) {
181 181
                 return $controller->callMethod($action . 'Action', $parameters);
182 182
             }
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
                 $params = array();
250 250
                 if (is_string($options)) {
251 251
                     $middleware = $options;
252
-                } elseif(is_array($options)) {
252
+                } elseif (is_array($options)) {
253 253
                     if (!isset($options['name'])) {
254 254
                         throw new InvalidArgumentException(sprintf(
255 255
                             'Missing key "name" middleware on route "%s".',
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      * @param MiddlewareInvoker $dispatcher
297 297
      * @param mixed             $rules
298 298
      */
299
-    private function setMiddlewareRule(MiddlewareInvoker &$dispatcher, $rules)
299
+    private function setMiddlewareRule(MiddlewareInvoker & $dispatcher, $rules)
300 300
     {
301 301
         if (is_array($rules)) {
302 302
             foreach (array('excepts' => 'except', 'only' => 'only') as $index => $method) {
Please login to merge, or discard this patch.
src/Middleware/MiddlewareContainer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
     {
114 114
         $executes = array_reverse($this->executes);
115 115
         foreach ($executes as $caller) {
116
-            $next = function () use (&$request, &$caller, $next, $action) {
116
+            $next = function() use (&$request, &$caller, $next, $action) {
117 117
                 return $caller($request, $next, $action);
118 118
             };
119 119
         }
Please login to merge, or discard this patch.