From ddabaaa6a8ce16876ddec36be1391eae14649aea Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 7 Nov 2016 07:57:25 -0600 Subject: [PATCH] fix formatting --- src/Illuminate/Contracts/Cookie/QueueingFactory.php | 5 ++--- src/Illuminate/Cookie/CookieJar.php | 11 +++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/Illuminate/Contracts/Cookie/QueueingFactory.php b/src/Illuminate/Contracts/Cookie/QueueingFactory.php index 1385eac0c2a8..e8fa3e2783ef 100644 --- a/src/Illuminate/Contracts/Cookie/QueueingFactory.php +++ b/src/Illuminate/Contracts/Cookie/QueueingFactory.php @@ -7,11 +7,10 @@ interface QueueingFactory extends Factory /** * Queue a cookie to send with the next response. * - * @param array $params - * + * @param array $parameters * @return void */ - public function queue(...$params); + public function queue(...$parameters); /** * Remove a cookie from the queue. diff --git a/src/Illuminate/Cookie/CookieJar.php b/src/Illuminate/Cookie/CookieJar.php index d1010c62f833..bfd0e90e1386 100755 --- a/src/Illuminate/Cookie/CookieJar.php +++ b/src/Illuminate/Cookie/CookieJar.php @@ -113,16 +113,15 @@ public function queued($key, $default = null) /** * Queue a cookie to send with the next response. * - * @param array $params - * + * @param array $parameters * @return void */ - public function queue(...$params) + public function queue(...$parameters) { - if (head($params) instanceof Cookie) { - $cookie = head($params); + if (head($parameters) instanceof Cookie) { + $cookie = head($parameters); } else { - $cookie = call_user_func_array([$this, 'make'], $params); + $cookie = call_user_func_array([$this, 'make'], $parameters); } $this->queued[$cookie->getName()] = $cookie;