Skip to content

Commit a9760a5

Browse files
committed
Fix cs
1 parent 68915df commit a9760a5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Http/Response.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function reset(): void
3131
$this->headers = [];
3232
}
3333

34-
public function setCode(int $code): Response
34+
public function setCode(int $code): self
3535
{
3636
$this->code = $code;
3737

@@ -43,21 +43,21 @@ public function getCode(): int
4343
return $this->code;
4444
}
4545

46-
public function setHeader(string $name, string $value): Response
46+
public function setHeader(string $name, string $value): self
4747
{
4848
$this->headers[$name] = $value;
4949

5050
return $this;
5151
}
5252

53-
public function addHeader(string $name, string $value): Response
53+
public function addHeader(string $name, string $value): self
5454
{
5555
$this->headers[$name] = $value;
5656

5757
return $this;
5858
}
5959

60-
public function setContentType(string $type, ?string $charset = null): Response
60+
public function setContentType(string $type, ?string $charset = null): self
6161
{
6262
$this->setHeader('Content-Type', $type.($charset ? '; charset='.$charset : ''));
6363

@@ -73,7 +73,7 @@ public function redirect(string $url, int $code = self::S302_FOUND): void
7373
/**
7474
* @param string|int|DateTime $time
7575
*/
76-
public function setExpiration($time): Response
76+
public function setExpiration($time): self
7777
{
7878
if (!$time) {
7979
$this->setHeader('Cache-Control', 's-maxage=0, max-age=0, must-revalidate');
@@ -107,7 +107,7 @@ public function getHeaders(): array
107107
/**
108108
* @param string|int|DateTime $time
109109
*/
110-
public function setCookie(string $name, string $value, $time, ?string $path = null, ?string $domain = null, ?bool $secure = null, ?bool $httpOnly = null, ?string $sameSite = null): Response
110+
public function setCookie(string $name, string $value, $time, ?string $path = null, ?string $domain = null, ?bool $secure = null, ?bool $httpOnly = null, ?string $sameSite = null): self
111111
{
112112
return $this;
113113
}

0 commit comments

Comments
 (0)