@@ -54,8 +54,7 @@ |
||
| 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 | * |
@@ -87,8 +87,7 @@ |
||
| 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 | * |
@@ -68,8 +68,7 @@ |
||
| 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 | * |
@@ -61,8 +61,7 @@ |
||
| 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 | * |
@@ -62,8 +62,7 @@ |
||
| 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 | * |
@@ -55,8 +55,7 @@ |
||
| 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 | * |
@@ -67,8 +67,7 @@ |
||
| 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 | * |
@@ -51,8 +51,7 @@ discard block |
||
| 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 |
||
| 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)); |
@@ -51,8 +51,7 @@ |
||
| 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'; |