Passed
Push — master ( f47820...1e7c7f )
by Baptiste
02:18
created
src/Json/Context.php 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -1,11 +1,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)');
Please login to merge, or discard this patch.