@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public static function middleware(array $stack) |
43 | 43 | { |
44 | - return array_map(function ($callable) { |
|
44 | + return array_map(function($callable) { |
|
45 | 45 | $callable = is_string($callable) ? static::lazy($callable) : $callable; |
46 | 46 | return $callable; |
47 | 47 | }, $stack); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public static function lazy($className) |
58 | 58 | { |
59 | - return function (RequestInterface $request, callable $next) use ($className) { |
|
59 | + return function(RequestInterface $request, callable $next) use ($className) { |
|
60 | 60 | $class = new $className(); |
61 | 61 | return $class($request, $next); |
62 | 62 | }; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | public static function router(RequestInterface $request, $path = null) |
71 | 71 | { |
72 | 72 | $path = $path ?: __DIR__ . "/../app/routes.php"; |
73 | - $dispatcher = \FastRoute\simpleDispatcher(function (RouteCollector $r) use ($path) { |
|
73 | + $dispatcher = \FastRoute\simpleDispatcher(function(RouteCollector $r) use ($path) { |
|
74 | 74 | include $path; |
75 | 75 | }); |
76 | 76 | $match = $dispatcher->dispatch($request->getMethod(), $request->getUri()->getPath()); |
@@ -24,7 +24,6 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * Returns a response with a particular view loaded. |
26 | 26 | * |
27 | - * @param string $view name of the view to load |
|
28 | 27 | * @param array $data data to expose to the view |
29 | 28 | * @return \Psr\Http\Message\ResponseInterface |
30 | 29 | */ |
@@ -36,7 +35,7 @@ discard block |
||
36 | 35 | /** |
37 | 36 | * Create a new basic string response. |
38 | 37 | * |
39 | - * @param string $name name of the view to load |
|
38 | + * @param string $string |
|
40 | 39 | * @return \Psr\Http\Message\ResponseInterface |
41 | 40 | */ |
42 | 41 | public static function string($string) |