Skip to content

Commit

Permalink
reformat code as suggested by @fabpot
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh authored and fabpot committed Nov 21, 2014
1 parent ad64223 commit 3039935
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/Symfony/Component/HttpFoundation/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -692,17 +692,19 @@ public static function getHttpMethodParameterOverride()
*/
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 ($this !== $result = $this->query->get($key, $this, $deep)) {
return $result;
}
if ($result === $this) {
$result = $this->request->get($key, $this, $deep);

if ($this !== $result = $this->attributes->get($key, $this, $deep)) {
return $result;
}
if ($result === $this) {
return $default;

if ($this !== $result = $this->request->get($key, $this, $deep)) {
return $result;
}
return $result;

return $default;
}

/**
Expand Down

0 comments on commit 3039935

Please sign in to comment.