summaryrefslogtreecommitdiff
path: root/tests/http/payload.php
diff options
context:
space:
mode:
authorThomas PEREZ <[email protected]>2019-10-09 20:57:28 +0200
committerThomas PEREZ <[email protected]>2019-10-09 21:00:07 +0200
commit46783061ceddee1fe8dd4f9aa9e71a2e6a293e7f (patch)
tree39844e383c16163c8f3cfdc92c06354353069dfd /tests/http/payload.php
parent98940ef86c39217b8bdf61e06b8883024334c45c (diff)
Php cs fixer
Diffstat (limited to 'tests/http/payload.php')
-rw-r--r--tests/http/payload.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/http/payload.php b/tests/http/payload.php
index 52c0f819..b7a0311f 100644
--- a/tests/http/payload.php
+++ b/tests/http/payload.php
@@ -5,7 +5,7 @@ use Psr\Http\Message\ServerRequestInterface;
function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): ResponseInterface
{
- if ( $req->getHeaderLine("Content-Type") != 'application/json' ) {
+ if ($req->getHeaderLine("Content-Type") != 'application/json') {
$resp->getBody()->write("invalid content-type");
return $resp;
}
@@ -15,4 +15,4 @@ function handleRequest(ServerRequestInterface $req, ResponseInterface $resp): Re
$resp->getBody()->write(json_encode(array_flip($p)));
return $resp;
-} \ No newline at end of file
+}