Passed
Push — main ( 292729...118966 )
by Razon
05:20
created
src/ServerRequestFactory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
19 19
         $server['SCRIPT_NAME'] = $this->getScriptName();
20 20
         $uri = $this->createUri($server);
21 21
 
22
-        $headers = $request->header??[];
22
+        $headers = $request->header ?? [];
23 23
 
24 24
         $cookies = $request->cookie ?? [];
25 25
         if ($cookies) {
26
-            $tmp= [];
26
+            $tmp = [];
27 27
             foreach ($cookies as $name => $value) {
28 28
                 $tmp[] = sprintf("%s=%s", $name, $value);
29 29
             }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $psrRequest = $psrRequest
45 45
             ->withQueryParams($queryParams)
46 46
             ->withCookieParams($cookies)
47
-            ->withUploadedFiles($this->parseUploadedFiles($request->files??[]));
47
+            ->withUploadedFiles($this->parseUploadedFiles($request->files ?? []));
48 48
 
49 49
         return $psrRequest;
50 50
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         global $argv;
55 55
 
56
-        return $argv[0]??'';
56
+        return $argv[0] ?? '';
57 57
     }
58 58
 
59 59
     private function createUri(array $server): UriInterface
Please login to merge, or discard this patch.