Passed
Push — develop ( 7de9ec...8ee187 )
by nguereza
01:51
created
src/Message.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@
 block discarded – undo
47 47
 
48 48
 namespace Platine\Http;
49 49
 
50
-abstract class Message implements MessageInterface
51
-{
50
+abstract class Message implements MessageInterface {
52 51
     /**
53 52
      * The message protocol version.
54 53
      * @var string
Please login to merge, or discard this patch.
src/UploadedFile.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@
 block discarded – undo
50 50
 use InvalidArgumentException;
51 51
 use RuntimeException;
52 52
 
53
-class UploadedFile implements UploadedFileInterface
54
-{
53
+class UploadedFile implements UploadedFileInterface {
55 54
     /**
56 55
      * The uploaded file name
57 56
      * @var string
Please login to merge, or discard this patch.
src/Request.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 Request
52 52
  * @package Platine\Http
53 53
  */
54
-class Request extends Message implements RequestInterface
55
-{
54
+class Request extends Message implements RequestInterface {
56 55
     /**
57 56
      * The request target
58 57
      * @var string
@@ -76,8 +75,7 @@  discard block
 block discarded – undo
76 75
      * @param string $method the HTTP request method
77 76
      * @param UriInterface|string|null $uri    the request Uri
78 77
      */
79
-    public function __construct(string $method = 'GET', $uri = null)
80
-    {
78
+    public function __construct(string $method = 'GET', $uri = null) {
81 79
         $this->method = $this->filterMethod($method);
82 80
         if ($uri === null) {
83 81
             $uri = new Uri();
Please login to merge, or discard this patch.
src/ServerRequest.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -50,8 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
 use InvalidArgumentException;
52 52
 
53
-class ServerRequest extends Request implements ServerRequestInterface
54
-{
53
+class ServerRequest extends Request implements ServerRequestInterface {
55 54
     /**
56 55
      * The array of servers params
57 56
      * @var array<string, mixed>
@@ -221,8 +220,7 @@  discard block
 block discarded – undo
221 220
     /**
222 221
      * {@inheritdoc}
223 222
      */
224
-    public function getParsedBody()
225
-    {
223
+    public function getParsedBody() {
226 224
         return $this->parsedBody;
227 225
     }
228 226
 
@@ -248,8 +246,7 @@  discard block
 block discarded – undo
248 246
     /**
249 247
      * {@inheritdoc}
250 248
      */
251
-    public function getAttribute(string $name, $default = null)
252
-    {
249
+    public function getAttribute(string $name, $default = null) {
253 250
         return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
254 251
     }
255 252
 
@@ -301,8 +298,7 @@  discard block
 block discarded – undo
301 298
      * @param  object|array<string|int, mixed>|mixed|null $data the parsed body
302 299
      * @return mixed
303 300
      */
304
-    protected function filterParsedBody($data)
305
-    {
301
+    protected function filterParsedBody($data) {
306 302
         if ($data !== null && !is_array($data) && !is_object($data)) {
307 303
             throw new InvalidArgumentException('Invalid parsed body! Parsed body must be an array or an object');
308 304
         }
Please login to merge, or discard this patch.