diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-22 15:51:09 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-02-22 15:51:19 +0100 |
commit | 043a824e6aaaf7f6ef85be98ffeea4f458a5d541 (patch) | |
tree | 9af99653d9569a12a36fef8c678919a8ada416bf /lib/private | |
parent | 6335c6c5ec3e2f66081afa3570fd887b35473352 (diff) | |
download | nextcloud-server-043a824e6aaaf7f6ef85be98ffeea4f458a5d541.tar.gz nextcloud-server-043a824e6aaaf7f6ef85be98ffeea4f458a5d541.zip |
Fix comments
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/AppFramework/Http/Request.php | 4 |
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]; } |