Fix comments

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/8491/head
Roeland Jago Douma 8 years ago
parent 6335c6c5ec
commit 043a824e6a
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 4
      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];
}

Loading…
Cancel
Save