Passed
Push — master ( 529de4...5c67a7 )
by Baptiste
02:59
created
src/Http/PluginClientBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 namespace Behapi\Http;
3 3
 
4 4
 use Http\Client\Common\Plugin;
Please login to merge, or discard this patch.
src/Http/PluginNotFound.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 namespace Behapi\Http;
3 3
 
4 4
 use InvalidArgumentException;
Please login to merge, or discard this patch.
src/Json/Context.php 1 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;
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $this->getJson();
53 53
 
54
-        [$contentType,] = explode(';', $this->getResponse()->getHeaderLine('Content-Type'), 2);
54
+        [$contentType, ] = explode(';', $this->getResponse()->getHeaderLine('Content-Type'), 2);
55 55
 
56 56
         Assert::same(JSON_ERROR_NONE, json_last_error(), sprintf('The response is not a valid json (%s)', json_last_error_msg()));
57 57
         Assert::oneOf($contentType, $this->getContentTypes(), 'The response should have a valid content-type (expected one of %2$s, got %1$s)');
Please login to merge, or discard this patch.
src/Http/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 namespace Behapi\Http;
3 3
 
4 4
 use Http\Message\StreamFactory;
Please login to merge, or discard this patch.
src/Http/ResponseContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 namespace Behapi\Http;
3 3
 
4 4
 use RuntimeException;
Please login to merge, or discard this patch.
src/Http/RequestContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 namespace Behapi\Http;
3 3
 
4 4
 use RuntimeException;
Please login to merge, or discard this patch.
src/Debug/Introspection/Adapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 namespace Behapi\Debug\Introspection;
3 3
 
4 4
 use Psr\Http\Message\MessageInterface;
Please login to merge, or discard this patch.
src/Debug/Introspection/Response/VarDumperAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 namespace Behapi\Debug\Introspection\Response;
3 3
 
4 4
 use Psr\Http\Message\MessageInterface;
Please login to merge, or discard this patch.
src/Debug/Introspection/Response/VarDumper/JsonAdapter.php 1 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\Debug\Introspection\Response\VarDumper;
3 3
 
4 4
 use Psr\Http\Message\MessageInterface;
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             return false;
49 49
         }
50 50
 
51
-        [$contentType,] = explode(';', $message->getHeaderLine('Content-Type'), 2);
51
+        [$contentType, ] = explode(';', $message->getHeaderLine('Content-Type'), 2);
52 52
 
53 53
         return 'application/json' === $contentType;
54 54
     }
Please login to merge, or discard this patch.