Passed
Push — master ( 1e0132...9b86f1 )
by Baptiste
02:58
created
src/Http/Response.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/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 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;
@@ -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/RequestContext.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,9 @@
 block discarded – undo
2 2
 namespace Behapi\Http;
3 3
 
4 4
 use RuntimeException;
5
-
6 5
 use Psr\Http\Message\RequestInterface;
7
-
8 6
 use Behat\Behat\Context\Context;
9 7
 use Behat\Gherkin\Node\TableNode;
10
-
11 8
 use Http\Client\HttpClient;
12 9
 use Http\Message\StreamFactory;
13 10
 use Http\Message\MessageFactory;
Please login to merge, or discard this 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/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.