reformat code as suggested by @fabpot

This commit is contained in:
Christian Flothmann 2014-11-21 15:29:33 +01:00 committed by Fabien Potencier
parent ad6422304b
commit 3039935997

View File

@ -692,19 +692,21 @@ class Request
*/
public function get($key, $default = null, $deep = false)
{
$result = $this->query->get($key, $this, $deep);
if ($result === $this) {
$result = $this->attributes->get($key, $this, $deep);
}
if ($result === $this) {
$result = $this->request->get($key, $this, $deep);
}
if ($result === $this) {
return $default;
}
if ($this !== $result = $this->query->get($key, $this, $deep)) {
return $result;
}
if ($this !== $result = $this->attributes->get($key, $this, $deep)) {
return $result;
}
if ($this !== $result = $this->request->get($key, $this, $deep)) {
return $result;
}
return $default;
}
/**
* Gets the Session.
*