diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-03-28 16:13:19 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-04-04 11:45:22 +0200 |
commit | 0b332ceac24ee93e82e25ee95841ae6fae3b889b (patch) | |
tree | 5c33219f115c05a17cec25e2122ff1cae352e86f /lib/private/AppFramework/Http/Request.php | |
parent | 292b903bc283c5a7929e092d8262331606461ef7 (diff) | |
download | nextcloud-server-0b332ceac24ee93e82e25ee95841ae6fae3b889b.tar.gz nextcloud-server-0b332ceac24ee93e82e25ee95841ae6fae3b889b.zip |
fix: Apply new coding standard to all files
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/AppFramework/Http/Request.php')
-rw-r--r-- | lib/private/AppFramework/Http/Request.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php index 94054c3e62c..7a614878ab5 100644 --- a/lib/private/AppFramework/Http/Request.php +++ b/lib/private/AppFramework/Http/Request.php @@ -121,7 +121,7 @@ class Request implements \ArrayAccess, \Countable, IRequest { public function __construct(array $vars, IRequestId $requestId, IConfig $config, - CsrfTokenManager $csrfTokenManager = null, + ?CsrfTokenManager $csrfTokenManager = null, string $stream = 'php://input') { $this->inputStream = $stream; $this->items['params'] = []; @@ -432,8 +432,8 @@ class Request implements \ArrayAccess, \Countable, IRequest { $this->items['post'] = $params; } } - // Handle application/x-www-form-urlencoded for methods other than GET - // or post correctly + // Handle application/x-www-form-urlencoded for methods other than GET + // or post correctly } elseif ($this->method !== 'GET' && $this->method !== 'POST' && str_contains($this->getHeader('Content-Type'), 'application/x-www-form-urlencoded')) { |