Remove duplicate code
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
bea5bbde31
commit
fdf4e1ebb2
|
@ -323,11 +323,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
|||
switch ($name) {
|
||||
case 'CONTENT_TYPE' :
|
||||
case 'CONTENT_LENGTH' :
|
||||
if (isset($this->server[$name])) {
|
||||
return $this->server[$name];
|
||||
}
|
||||
break;
|
||||
case 'REMOTE_ADDR' :
|
||||
case 'REMOTE_ADDR':
|
||||
if (isset($this->server[$name])) {
|
||||
return $this->server[$name];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue