@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | * @param null|string $namespace |
| 89 | 89 | * @return Dispatch |
| 90 | 90 | */ |
| 91 | - public function namespace(?string $namespace): Dispatch |
|
| 91 | + public function namespace(?string $namespace) : Dispatch |
|
| 92 | 92 | { |
| 93 | 93 | $this->namespace = ($namespace ? ucwords($namespace) : null); |
| 94 | 94 | return $this; |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | $route = (!$this->group ? $route : "/{$this->group}{$route}"); |
| 227 | 227 | $data = $this->data; |
| 228 | 228 | $namespace = $this->namespace; |
| 229 | - $router = function () use ($method, $handler, $data, $route, $name, $namespace) { |
|
| 229 | + $router = function() use ($method, $handler, $data, $route, $name, $namespace) { |
|
| 230 | 230 | return [ |
| 231 | 231 | "route" => $route, |
| 232 | 232 | "name" => $name, |