Skip to content

Commit 27080f8

Browse files
committed
Format code.
1 parent 474c311 commit 27080f8

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Cookie/CookieJar.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,17 @@ function (SetCookie $cookie) use ($domain) {
128128
$this->cookies = array_filter(
129129
$this->cookies,
130130
function (SetCookie $cookie) use ($path, $domain) {
131-
return ! ($cookie->matchesPath($path) &&
132-
$cookie->matchesDomain($domain));
131+
return ! ($cookie->matchesPath($path)
132+
&& $cookie->matchesDomain($domain));
133133
}
134134
);
135135
} else {
136136
$this->cookies = array_filter(
137137
$this->cookies,
138138
function (SetCookie $cookie) use ($path, $domain, $name) {
139-
return ! ($cookie->getName() == $name &&
140-
$cookie->matchesPath($path) &&
141-
$cookie->matchesDomain($domain));
139+
return ! ($cookie->getName() == $name
140+
&& $cookie->matchesPath($path)
141+
&& $cookie->matchesDomain($domain));
142142
}
143143
);
144144
}
@@ -179,9 +179,9 @@ public function setCookie(SetCookie $cookie)
179179
foreach ($this->cookies as $i => $c) {
180180
// Two cookies are identical, when their path, and domain are
181181
// identical.
182-
if ($c->getPath() != $cookie->getPath() ||
183-
$c->getDomain() != $cookie->getDomain() ||
184-
$c->getName() != $cookie->getName()
182+
if ($c->getPath() != $cookie->getPath()
183+
|| $c->getDomain() != $cookie->getDomain()
184+
|| $c->getName() != $cookie->getName()
185185
) {
186186
continue;
187187
}
@@ -252,10 +252,10 @@ public function withCookieHeader(RequestInterface $request)
252252
$path = $uri->getPath() ?: '/';
253253

254254
foreach ($this->cookies as $cookie) {
255-
if ($cookie->matchesPath($path) &&
256-
$cookie->matchesDomain($host) &&
257-
! $cookie->isExpired() &&
258-
(! $cookie->getSecure() || $scheme === 'https')
255+
if ($cookie->matchesPath($path)
256+
&& $cookie->matchesDomain($host)
257+
&& ! $cookie->isExpired()
258+
&& (! $cookie->getSecure() || $scheme === 'https')
259259
) {
260260
$values[] = $cookie->getName() . '='
261261
. $cookie->getValue();

0 commit comments

Comments
 (0)