Passed
Push — master ( bbfa5f...40b08b )
by Mihail
07:08
created
Client/CurlClient.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
133 133
         $instance = parent::withProtocolVersion($version);
134 134
         $instance->options[CURLOPT_HTTP_VERSION] =
135 135
             ['1.1' => CURL_HTTP_VERSION_1_1,
136
-             '1.0' => CURL_HTTP_VERSION_1_0][$version];
136
+                '1.0' => CURL_HTTP_VERSION_1_0][$version];
137 137
         return $instance;
138 138
     }
139 139
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function __construct(
42 42
         string $method,
43
-        string|UriInterface $uri,
44
-        string|iterable $body = null,
43
+        string | UriInterface $uri,
44
+        string | iterable $body = null,
45 45
         array $headers = [])
46 46
     {
47 47
         parent::__construct($method, $uri, $body, $headers);
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         return $instance;
132 132
     }
133 133
 
134
-    protected function createResource(): \CurlHandle|bool
134
+    protected function createResource(): \CurlHandle | bool
135 135
     {
136 136
         return \curl_init((string)$this->getUri());
137 137
     }
Please login to merge, or discard this patch.
Client/ClientFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 
63 63
     protected function new(string $method, $uri, $body = null, array $headers = []): HttpRequestClient
64 64
     {
65
-        return match ($this->clientType) {
65
+        return match($this->clientType) {
66 66
             self::CURL => new CurlClient($method, $uri, $body, $headers),
67 67
             self::PHP => new PhpClient($method, $uri, $body, $headers),
68 68
             default => throw new \InvalidArgumentException("{$this->clientType} is not a valid HTTP client"),
Please login to merge, or discard this patch.
Client/PhpClient.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
 
42 42
     public function __construct(
43 43
         string $method,
44
-        string|UriInterface $uri,
45
-        string|iterable $body = null,
44
+        string | UriInterface $uri,
45
+        string | iterable $body = null,
46 46
         array $headers = [])
47 47
     {
48 48
         parent::__construct($method, $uri, $body, $headers);
Please login to merge, or discard this patch.
ServerRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     protected array  $attributes     = [];
25 25
     protected array  $queryParams    = [];
26 26
 
27
-    protected object|array|null $parsedBody = null;
27
+    protected object | array | null $parsedBody = null;
28 28
 
29 29
     /**
30 30
      * ServerRequest constructor.
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         return $instance;
57 57
     }
58 58
 
59
-    public function getParsedBody(): object|array|null
59
+    public function getParsedBody(): object | array | null
60 60
     {
61 61
         if ($this->useOnlyPost()) {
62 62
             return $_POST;
Please login to merge, or discard this patch.
ClientRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@
 block discarded – undo
40 40
      */
41 41
     public function __construct(
42 42
         string $method,
43
-        string|UriInterface $uri,
44
-        string|iterable $body = null,
43
+        string | UriInterface $uri,
44
+        string | iterable $body = null,
45 45
         array $headers = [])
46 46
     {
47 47
         $this->uri    = $uri instanceof UriInterface ? $uri : new Uri($uri);
Please login to merge, or discard this patch.
HeaderTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
      *
156 156
      * @return void
157 157
      */
158
-    protected function normalizeHeader(string $name, array|string $value, bool $skipKey): void
158
+    protected function normalizeHeader(string $name, array | string $value, bool $skipKey): void
159 159
     {
160 160
         $name = \str_replace(["\r", "\n", "\t"], '', \trim($name));
161 161
         if (false === $skipKey) {
Please login to merge, or discard this patch.