Passed
Push — master ( 780ff9...7ac1e8 )
by Toby
03:14 queued 01:04
created
src/Request/BaseRequest.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -372,8 +372,7 @@  discard block
 block discarded – undo
372 372
      */
373 373
     public function setContentType($contentType)
374 374
     {
375
-        if ($contentType === 'json') { $contentType = 'application/json'; }
376
-        elseif ($contentType === 'form') { $contentType = 'application/x-www-form-urlencoded'; }
375
+        if ($contentType === 'json') { $contentType = 'application/json'; } elseif ($contentType === 'form') { $contentType = 'application/x-www-form-urlencoded'; }
377 376
         $this->contentType = $contentType;
378 377
     }
379 378
 
@@ -536,8 +535,7 @@  discard block
 block discarded – undo
536 535
     {
537 536
         if (!$this->contentType)
538 537
         {
539
-            if ($this->getMethod() === 'POST') { return 'application/x-www-form-urlencoded'; }
540
-            else { return 'application/json'; }
538
+            if ($this->getMethod() === 'POST') { return 'application/x-www-form-urlencoded'; } else { return 'application/json'; }
541 539
         }
542 540
         return $this->contentType;
543 541
     }
Please login to merge, or discard this patch.