Fix comments
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
6335c6c5ec
commit
043a824e6a
|
@ -177,7 +177,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function count(): 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 {
|
public function getHeader(string $name): string {
|
||||||
|
|
||||||
$name = strtoupper(str_replace(['-'], ['_'],$name));
|
$name = strtoupper(str_replace('-', '_',$name));
|
||||||
if (isset($this->server['HTTP_' . $name])) {
|
if (isset($this->server['HTTP_' . $name])) {
|
||||||
return $this->server['HTTP_' . $name];
|
return $this->server['HTTP_' . $name];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue