Passed
Push — develop ( f44fbb...548c47 )
by nguereza
03:54
created
src/Http/Middleware/BodyParserMiddleware.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      */
140 140
     protected function registerDefaultParsers(): void
141 141
     {
142
-        $this->registerParser('application/json', static function ($body) {
142
+        $this->registerParser('application/json', static function($body) {
143 143
             try {
144 144
                 return Json::decode($body, true);
145 145
             } catch (InvalidArgumentException $ex) {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             }
148 148
         });
149 149
 
150
-        $this->registerParser('application/x-www-form-urlencoded', static function ($body) {
150
+        $this->registerParser('application/x-www-form-urlencoded', static function($body) {
151 151
             $data = [];
152 152
             parse_str($body, $data);
153 153
 
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
      * @param ServerRequestInterface $request
161 161
      * @return null|array<mixed>|object
162 162
      */
163
-    protected function parseBody(ServerRequestInterface $request): array|object|null
163
+    protected function parseBody(ServerRequestInterface $request): array | object | null
164 164
     {
165 165
         $contentType = $this->getRequestContentType($request);
166 166
         if ($contentType === null) {
Please login to merge, or discard this patch.