summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/AppFramework/Http/Request.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php
index e6766107cba..86ba884141f 100644
--- a/lib/private/AppFramework/Http/Request.php
+++ b/lib/private/AppFramework/Http/Request.php
@@ -177,7 +177,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
* @return int
*/
public function count(): int {
- return \count(array_keys($this->items['parameters']));
+ return \count($this->items['parameters']);
}
/**
@@ -313,7 +313,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
*/
public function getHeader(string $name): string {
- $name = strtoupper(str_replace(['-'], ['_'],$name));
+ $name = strtoupper(str_replace('-', '_',$name));
if (isset($this->server['HTTP_' . $name])) {
return $this->server['HTTP_' . $name];
}