@@ -188,7 +188,7 @@ |
||
188 | 188 | return $this->dispatcher; |
189 | 189 | } |
190 | 190 | |
191 | - $routeDefinitionCallback = function (RouteCollector $r) { |
|
191 | + $routeDefinitionCallback = function(RouteCollector $r) { |
|
192 | 192 | foreach ($this->getRoutes() as $route) { |
193 | 193 | $r->addRoute($route->getMethods(), $route->getPattern(), $route->getIdentifier()); |
194 | 194 | } |
@@ -183,7 +183,7 @@ |
||
183 | 183 | * |
184 | 184 | * @param string[] $methods Array of HTTP methods |
185 | 185 | * @param string $pattern The route pattern |
186 | - * @param callable $handler The route callable |
|
186 | + * @param callable $callable |
|
187 | 187 | * |
188 | 188 | * @return \Slim\Interfaces\RouteInterface |
189 | 189 | */ |
@@ -140,7 +140,7 @@ |
||
140 | 140 | <p>Method not allowed. Must be one of: <strong>$allow</strong></p> |
141 | 141 | </body> |
142 | 142 | </html> |
143 | -END; |
|
143 | +end; |
|
144 | 144 | |
145 | 145 | return $output; |
146 | 146 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | /** |
73 | 73 | * Create new route |
74 | 74 | * |
75 | - * @param string|string[] $methods The route HTTP methods |
|
75 | + * @param string[] $methods The route HTTP methods |
|
76 | 76 | * @param string $pattern The route pattern |
77 | 77 | * @param callable $callable The route callable |
78 | 78 | * @param RouteGroup[] $groups The parent route groups |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use InvalidArgumentException; |
13 | 13 | use Psr\Http\Message\ServerRequestInterface; |
14 | 14 | use Psr\Http\Message\ResponseInterface; |
15 | -use Slim\Exception\SlimException; |
|
16 | 15 | use Slim\Handlers\Strategies\RequestResponse; |
17 | 16 | use Slim\Interfaces\InvocationStrategyInterface; |
18 | 17 | use Slim\Interfaces\RouteInterface; |
@@ -63,7 +63,7 @@ |
||
63 | 63 | $this->seedMiddlewareStack(); |
64 | 64 | } |
65 | 65 | $next = $this->stack->top(); |
66 | - $this->stack[] = function ( |
|
66 | + $this->stack[] = function( |
|
67 | 67 | ServerRequestInterface $request, |
68 | 68 | ResponseInterface $response |
69 | 69 | ) use ( |