Add missing trailing commas
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 17 Jul 2020 14:49:14 +0000 (16:49 +0200)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2020 14:49:14 +0000 (16:49 +0200)
Co-authored-by: Matthias Schmidt <gravatronics@live.com>
wcfsetup/install/files/lib/system/io/HttpFactory.class.php
wcfsetup/install/files/lib/util/HTTPRequest.class.php

index b8c42e97e8035bfca19f7cf463131cab2eff0bcf..6158b4a0401edb044a85069d22298d179966321b 100644 (file)
@@ -60,7 +60,7 @@ final class HttpFactory {
                        'proxy' => PROXY_SERVER_HTTP,
                        'headers' => [
                                'user-agent' => self::getDefaultUserAgent(),
-                       ]
+                       ],
                ], $options));
        }
 }
index a65be49239f99dfcc60f922cee3ea1b3e0cc9909..27c84c7a290ded3adfe89962e71b199908b6b998 100644 (file)
@@ -176,7 +176,7 @@ final class HTTPRequest {
                if (isset($this->options['auth'])) {
                        $options['auth'] = [
                                $this->options['auth']['username'],
-                               $this->options['auth']['password']
+                               $this->options['auth']['password'],
                        ];
                }
                
@@ -293,7 +293,7 @@ final class HTTPRequest {
                        'headers' => $legacyHeaders,
                        'httpHeaders' => $headers,
                        'body' => $this->replyBody,
-                       'url' => $this->url
+                       'url' => $this->url,
                ];
        }