Refactoring

This commit is contained in:
Simon Vieille 2017-10-23 22:51:57 +02:00
parent 6aa5bdf20e
commit 7a46198d05
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ require __DIR__.'/vendor/autoload.php';
*
* @param Response $response
*/
function send(Response $response)
function sendResponse(Response $response)
{
http_response_code($response->getStatusCode());
@ -66,7 +66,7 @@ try {
$apiResponse = $e->getResponse();
}
send(new Response(
sendResponse(new Response(
$apiResponse->getBody(),
$apiResponse->getStatusCode(),
$apiResponse->getHeaders()