Passed
Push — develop ( ea363f...2e3b8b )
by nguereza
02:24
created
src/Uri.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
             }
509 509
             return (string) preg_replace_callback(
510 510
                 '/(?:[^a-zA-Z0-9\-._~!$&\'()*+,;=:@\/%]++|%(?![a-fA-F0-9]{2}))/',
511
-                function ($matches) {
511
+                function($matches) {
512 512
                     return rawurlencode($matches[0]);
513 513
                 },
514 514
                 $path
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
             }
539 539
             return (string) preg_replace_callback(
540 540
                 '/(?:[^a-zA-Z0-9\-._~!$&\'()*+,;=:@\/?%]++|%(?![a-fA-F0-9]{2}))/',
541
-                function ($matches) {
541
+                function($matches) {
542 542
                     return rawurlencode($matches[0]);
543 543
                 },
544 544
                 $query
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
         if ($fragment !== '') {
559 559
             return (string) preg_replace_callback(
560 560
                 '/(?:[^a-zA-Z0-9\-._~!$&\'()*+,;=:@\/?%]++|%(?![a-fA-F0-9]{2}))/',
561
-                function ($matches) {
561
+                function($matches) {
562 562
                     return rawurlencode($matches[0]);
563 563
                 },
564 564
                 $fragment
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.