Skip to content

Commit f7dfee2

Browse files
committed
fix: lint
1 parent eaebc95 commit f7dfee2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/App.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ protected function getArguments(Hook $hook, array $values, array $requestParams)
667667
public function run(Request $request, Response $response): static
668668
{
669669
if ($this->compression) {
670-
$response->setAcceptEncoding($request->getHeader('accept-encoding') ?? '');
670+
$response->setAcceptEncoding($request->getHeader('accept-encoding', ''));
671671
$response->setCompressionMinSize($this->compressionMinSize);
672672
}
673673

src/Response.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function setAcceptEncoding(string $acceptEncoding): static
295295
return $this;
296296
}
297297

298-
/**
298+
/**
299299
* Set min compression size
300300
*
301301
* Set minimum size for compression to be applied in bytes.
@@ -516,7 +516,7 @@ public function send(string $body = ''): void
516516
$this->addHeader('X-Debug-Speed', (string) (microtime(true) - $this->startTime));
517517

518518
$this->appendCookies()->appendHeaders();
519-
519+
520520
// Send response
521521
if ($this->disablePayload) {
522522
$this->end();

0 commit comments

Comments
 (0)