diff --git a/examples/public/middleware_use.php b/examples/public/middleware_use.php index 9597c2d7..9b8e0991 100644 --- a/examples/public/middleware_use.php +++ b/examples/public/middleware_use.php @@ -69,7 +69,7 @@ $app->post('/access_token', function () { })->add(new AuthenticationServerMiddleware($app->getContainer()->get(Server::class))); // Secured API -$app->group('/api', function() { +$app->group('/api', function () { $this->get('/user', function (ServerRequestInterface $request, ResponseInterface $response) { $params = []; @@ -77,7 +77,7 @@ $app->group('/api', function() { $params = [ 'id' => 1, 'name' => 'Alex', - 'city' => 'London' + 'city' => 'London', ]; } diff --git a/examples/public/refresh_token.php b/examples/public/refresh_token.php index a5e80047..64553311 100644 --- a/examples/public/refresh_token.php +++ b/examples/public/refresh_token.php @@ -44,7 +44,7 @@ $app = new App([ ); return $server; - } + }, ]); $app->post('/access_token', function (ServerRequestInterface $request, ResponseInterface $response) use ($app) {