satisfy StyleCI

This commit is contained in:
Julián Gutiérrez 2016-03-08 21:49:05 +01:00
parent 9c66688d19
commit 5760450854
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ $app->post('/access_token', function () {
})->add(new AuthenticationServerMiddleware($app->getContainer()->get(Server::class))); })->add(new AuthenticationServerMiddleware($app->getContainer()->get(Server::class)));
// Secured API // Secured API
$app->group('/api', function() { $app->group('/api', function () {
$this->get('/user', function (ServerRequestInterface $request, ResponseInterface $response) { $this->get('/user', function (ServerRequestInterface $request, ResponseInterface $response) {
$params = []; $params = [];
@ -77,7 +77,7 @@ $app->group('/api', function() {
$params = [ $params = [
'id' => 1, 'id' => 1,
'name' => 'Alex', 'name' => 'Alex',
'city' => 'London' 'city' => 'London',
]; ];
} }

View File

@ -44,7 +44,7 @@ $app = new App([
); );
return $server; return $server;
} },
]); ]);
$app->post('/access_token', function (ServerRequestInterface $request, ResponseInterface $response) use ($app) { $app->post('/access_token', function (ServerRequestInterface $request, ResponseInterface $response) use ($app) {