Fix comments

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-02-22 15:51:09 +01:00
parent 6335c6c5ec
commit 043a824e6a
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -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];
}