Skip to content

Commit ddabaaa

Browse files
committed
fix formatting
1 parent 9f19107 commit ddabaaa

2 files changed

Lines changed: 7 additions & 9 deletions

File tree

src/Illuminate/Contracts/Cookie/QueueingFactory.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ interface QueueingFactory extends Factory
77
/**
88
* Queue a cookie to send with the next response.
99
*
10-
* @param array $params
11-
*
10+
* @param array $parameters
1211
* @return void
1312
*/
14-
public function queue(...$params);
13+
public function queue(...$parameters);
1514

1615
/**
1716
* Remove a cookie from the queue.

src/Illuminate/Cookie/CookieJar.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,15 @@ public function queued($key, $default = null)
113113
/**
114114
* Queue a cookie to send with the next response.
115115
*
116-
* @param array $params
117-
*
116+
* @param array $parameters
118117
* @return void
119118
*/
120-
public function queue(...$params)
119+
public function queue(...$parameters)
121120
{
122-
if (head($params) instanceof Cookie) {
123-
$cookie = head($params);
121+
if (head($parameters) instanceof Cookie) {
122+
$cookie = head($parameters);
124123
} else {
125-
$cookie = call_user_func_array([$this, 'make'], $params);
124+
$cookie = call_user_func_array([$this, 'make'], $parameters);
126125
}
127126

128127
$this->queued[$cookie->getName()] = $cookie;

0 commit comments

Comments
 (0)