Skip to content

Commit ca1ffc0

Browse files
committed
style: run composer cs-fix on HTTP classes
1 parent 9db8a0e commit ca1ffc0

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎system/HTTP/MessageTrait.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ public function setProtocolVersion(string $version): self
272272
}
273273

274274
// If a full protocol string (e.g., "HTTP/1.1") is provided, extract the numeric part.
275-
if (strpos($version, '/') !== false) {
275+
if (str_contains($version, '/')) {
276276
$version = substr($version, strpos($version, '/') + 1);
277277
}
278278

‎system/HTTP/RedirectResponse.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ public function withCookies()
160160
public function withHeaders()
161161
{
162162
$source = service('response');
163+
163164
foreach ($source->headers() as $name => $value) {
164165
if ($value instanceof Header) {
165166
$this->setHeader($name, $value->getValue());
@@ -169,6 +170,7 @@ public function withHeaders()
169170
}
170171
}
171172
}
173+
172174
// Ensure source response remains empty after copying to satisfy tests that expect no residual headers.
173175
foreach (array_keys($source->headers()) as $key) {
174176
$source->removeHeader($key);

0 commit comments

Comments
 (0)