Skip to content

Commit 3039935

Browse files
xabbuhfabpot
authored andcommitted
reformat code as suggested by @fabpot
1 parent ad64223 commit 3039935

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -692,17 +692,19 @@ public static function getHttpMethodParameterOverride()
692692
*/
693693
public function get($key, $default = null, $deep = false)
694694
{
695-
$result = $this->query->get($key, $this, $deep);
696-
if ($result === $this) {
697-
$result = $this->attributes->get($key, $this, $deep);
695+
if ($this !== $result = $this->query->get($key, $this, $deep)) {
696+
return $result;
698697
}
699-
if ($result === $this) {
700-
$result = $this->request->get($key, $this, $deep);
698+
699+
if ($this !== $result = $this->attributes->get($key, $this, $deep)) {
700+
return $result;
701701
}
702-
if ($result === $this) {
703-
return $default;
702+
703+
if ($this !== $result = $this->request->get($key, $this, $deep)) {
704+
return $result;
704705
}
705-
return $result;
706+
707+
return $default;
706708
}
707709

708710
/**

0 commit comments

Comments
 (0)