Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 7, 2016
1 parent 9f19107 commit ddabaaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions src/Illuminate/Contracts/Cookie/QueueingFactory.php
Expand Up @@ -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.
Expand Down
11 changes: 5 additions & 6 deletions src/Illuminate/Cookie/CookieJar.php
Expand Up @@ -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;
Expand Down

0 comments on commit ddabaaa

Please sign in to comment.