Fix comments
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
6335c6c5ec
commit
043a824e6a
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue