@@ -1,11 +1,7 @@ |
||
1 | 1 | <?php declare(strict_types=1); |
2 | 2 | namespace Behapi\Json; |
3 | 3 | |
4 | -use stdClass; |
|
5 | -use InvalidArgumentException; |
|
6 | - |
|
7 | 4 | use Webmozart\Assert\Assert; |
8 | - |
|
9 | 5 | use Behapi\Http\Response; |
10 | 6 | use Behapi\HttpHistory\History as HttpHistory; |
11 | 7 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | namespace Behapi\Json; |
3 | 3 | |
4 | 4 | use stdClass; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | public function responseIsValidjson() |
41 | 41 | { |
42 | - [$contentType,] = explode(';', $this->getResponse()->getHeaderLine('Content-Type'), 2); |
|
42 | + [$contentType, ] = explode(';', $this->getResponse()->getHeaderLine('Content-Type'), 2); |
|
43 | 43 | |
44 | 44 | // todo : support multiple json formats (jsonld, jsonapi, ...) |
45 | 45 | Assert::same($contentType, 'application/json', 'The response should have a valid content-type (expected %2$s, got %1$s)'); |