Remove duplicate code (#17451)

Remove duplicate code
This commit is contained in:
John Molakvoæ 2019-10-08 08:21:30 +02:00 committed by GitHub
commit 76bdced6e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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];
} }