Passed
Push — develop ( 7c72a0...681479 )
by nguereza
02:23
created
src/StreamInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@
 block discarded – undo
54 54
  * a wrapper around the most common operations, including serialization of
55 55
  * the entire stream to a string.
56 56
  */
57
-interface StreamInterface
58
-{
57
+interface StreamInterface {
59 58
     /**
60 59
      * Reads all data from the stream into a string, from the beginning to end.
61 60
      *
Please login to merge, or discard this patch.
src/ServerRequestInterface.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,7 @@
 block discarded – undo
87 87
  * be implemented such that they retain the internal state of the current
88 88
  * message and return an instance that contains the changed state.
89 89
  */
90
-interface ServerRequestInterface extends RequestInterface
91
-{
90
+interface ServerRequestInterface extends RequestInterface {
92 91
     /**
93 92
      * Retrieve server parameters.
94 93
      *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
      * @return null|array<string, mixed>|object The deserialized body parameters, if any.
220 220
      *     These will typically be an array or object.
221 221
      */
222
-    public function getParsedBody(): array|object|null;
222
+    public function getParsedBody(): array | object | null;
223 223
 
224 224
     /**
225 225
      * Return an instance with the specified body parameters.
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      * @throws InvalidArgumentException if an unsupported argument type is
252 252
      *     provided.
253 253
      */
254
-    public function withParsedBody(array|object|null $data): self;
254
+    public function withParsedBody(array | object | null $data): self;
255 255
 
256 256
     /**
257 257
      * Retrieve attributes derived from the request.
Please login to merge, or discard this patch.
src/RequestInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,7 @@
 block discarded – undo
68 68
  * be implemented such that they retain the internal state of the current
69 69
  * message and return an instance that contains the changed state.
70 70
  */
71
-interface RequestInterface extends MessageInterface
72
-{
71
+interface RequestInterface extends MessageInterface {
73 72
     /**
74 73
      * Retrieves the message's request target.
75 74
      *
Please login to merge, or discard this patch.
src/MessageInterface.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
  * @see http://www.ietf.org/rfc/rfc7230.txt
62 62
  * @see http://www.ietf.org/rfc/rfc7231.txt
63 63
  */
64
-interface MessageInterface
65
-{
64
+interface MessageInterface {
66 65
     /**
67 66
      * Retrieves the HTTP protocol version as a string.
68 67
      *
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * @return $this
180 180
      * @throws InvalidArgumentException for invalid header names or values.
181 181
      */
182
-    public function withHeader(string $name, string|array $value): self;
182
+    public function withHeader(string $name, string | array $value): self;
183 183
 
184 184
     /**
185 185
      * Return an instance with the specified header appended with the given value.
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      * @throws InvalidArgumentException for invalid header names.
199 199
      * @throws InvalidArgumentException for invalid header values.
200 200
      */
201
-    public function withAddedHeader(string $name, string|array $value): self;
201
+    public function withAddedHeader(string $name, string | array $value): self;
202 202
 
203 203
     /**
204 204
      * Return an instance without the specified header.
Please login to merge, or discard this patch.
src/ResponseInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@
 block discarded – undo
62 62
  * be implemented such that they retain the internal state of the current
63 63
  * message and return an instance that contains the changed state.
64 64
  */
65
-interface ResponseInterface extends MessageInterface
66
-{
65
+interface ResponseInterface extends MessageInterface {
67 66
     /**
68 67
      * Gets the response status code.
69 68
      *
Please login to merge, or discard this patch.
src/UploadedFileInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
  * state of the current instance and return an instance that contains the
56 56
  * changed state.
57 57
  */
58
-interface UploadedFileInterface
59
-{
58
+interface UploadedFileInterface {
60 59
     /**
61 60
      * Retrieve a stream representing the uploaded file.
62 61
      *
Please login to merge, or discard this patch.
src/UriInterface.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,8 +67,7 @@
 block discarded – undo
67 67
  *
68 68
  * @see http://tools.ietf.org/html/rfc3986 (the URI specification)
69 69
  */
70
-interface UriInterface
71
-{
70
+interface UriInterface {
72 71
     /**
73 72
      * Retrieve the scheme component of the URI.
74 73
      *
Please login to merge, or discard this patch.
src/Client/HttpCookie.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@  discard block
 block discarded – undo
51 51
  * @class HttpCookie
52 52
  * @package Platine\Http\Client
53 53
  */
54
-class HttpCookie
55
-{
54
+class HttpCookie {
56 55
     /**
57 56
      * The name of cookie
58 57
      * @var string
@@ -112,8 +111,7 @@  discard block
 block discarded – undo
112 111
      * Create new instance
113 112
      * @param string $cookieString
114 113
      */
115
-    public function __construct(string $cookieString)
116
-    {
114
+    public function __construct(string $cookieString) {
117 115
         $parts = array_map('trim', explode(';', $cookieString));
118 116
         foreach ($parts as $partStr) {
119 117
             $part = array_map('trim', explode('=', $partStr));
Please login to merge, or discard this patch.
src/Client/HttpMethod.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,8 +51,7 @@
 block discarded – undo
51 51
  * @class HttpMethod
52 52
  * @package Platine\Http\Client
53 53
  */
54
-class HttpMethod
55
-{
54
+class HttpMethod {
56 55
     public const HEAD = 'HEAD';
57 56
     public const GET = 'GET';
58 57
     public const PUT = 'PUT';
Please login to merge, or discard this patch.