@@ -74,7 +74,7 @@ |
||
74 | 74 | $route = (!$this->group ? $route : "/{$this->group}{$route}"); |
75 | 75 | $data = $this->data; |
76 | 76 | $namespace = $this->namespace; |
77 | - $router = function () use ($method, $handler, $data, $route, $name, $namespace) { |
|
77 | + $router = function() use ($method, $handler, $data, $route, $name, $namespace) { |
|
78 | 78 | return [ |
79 | 79 | "route" => $route, |
80 | 80 | "name" => $name, |
@@ -71,7 +71,7 @@ |
||
71 | 71 | * @param null|string $namespace |
72 | 72 | * @return Dispatch |
73 | 73 | */ |
74 | - public function namespace(?string $namespace): Dispatch |
|
74 | + public function namespace(?string $namespace) : Dispatch |
|
75 | 75 | { |
76 | 76 | $this->namespace = ($namespace ? ucwords($namespace) : null); |
77 | 77 | return $this; |