[BrowserKit] Removed useless else
This commit is contained in:
parent
2a6c5018ae
commit
96981670ea
@ -118,9 +118,9 @@ class Response
|
||||
if (str_replace('-', '_', strtolower($key)) == str_replace('-', '_', strtolower($header))) {
|
||||
if ($first) {
|
||||
return is_array($value) ? (count($value) ? $value[0] : '') : $value;
|
||||
} else {
|
||||
return is_array($value) ? $value : array($value);
|
||||
}
|
||||
|
||||
return is_array($value) ? $value : array($value);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -36,12 +36,12 @@ class TestClient extends Client
|
||||
{
|
||||
if (null === $this->nextResponse) {
|
||||
return new Response();
|
||||
} else {
|
||||
$response = $this->nextResponse;
|
||||
$this->nextResponse = null;
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
$response = $this->nextResponse;
|
||||
$this->nextResponse = null;
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
protected function getScript($request)
|
||||
|
Reference in New Issue
Block a user