From 4dfd141b414f64c53b8145e9b95ea07eef70fdcb Mon Sep 17 00:00:00 2001 From: Mark Story Date: Tue, 30 Aug 2016 22:59:11 -0400 Subject: [PATCH] Fix PHPCS errors. --- src/Network/Request.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Network/Request.php b/src/Network/Request.php index 8d626c9ab5c..23fa317c5e7 100644 --- a/src/Network/Request.php +++ b/src/Network/Request.php @@ -1444,6 +1444,7 @@ public function withAttribute($name, $value) } else { $new->attributes[$name] = $value; } + return $new; } @@ -1451,7 +1452,6 @@ public function withAttribute($name, $value) * Return an instance without the specified request attribute. * * @param string $name The attribute name. - * @param mixed $value The value of the attribute. * @return static * @throws InvalidArgumentException */ @@ -1465,6 +1465,7 @@ public function withoutAttribute($name) ); } unset($new->attributes[$name]); + return $new; } @@ -1484,6 +1485,7 @@ public function getAttribute($name, $default = null) if (array_key_exists($name, $this->attributes)) { return $this->attributes[$name]; } + return $default; } @@ -1502,6 +1504,7 @@ public function getAttributes() 'webroot' => $this->webroot, 'base' => $this->base ]; + return $this->attributes + $emulated; }