Remove duplicate code

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2019-10-08 00:46:50 +02:00
parent bea5bbde31
commit fdf4e1ebb2
No known key found for this signature in database
GPG Key ID: 36E3664E099D0614
1 changed files with 1 additions and 5 deletions

View File

@ -323,11 +323,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
switch ($name) { switch ($name) {
case 'CONTENT_TYPE' : case 'CONTENT_TYPE' :
case 'CONTENT_LENGTH' : case 'CONTENT_LENGTH' :
if (isset($this->server[$name])) { case 'REMOTE_ADDR':
return $this->server[$name];
}
break;
case 'REMOTE_ADDR' :
if (isset($this->server[$name])) { if (isset($this->server[$name])) {
return $this->server[$name]; return $this->server[$name];
} }