Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Jan 30, 2024
1 parent cfc6f97 commit 80352cb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Response/LoggableResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ public function getHeaders(bool $throw = true): array
{
try {
return $this->response->getHeaders($throw);
} catch (ServerExceptionInterface $ex) {
} catch (ServerExceptionInterface) {
throw new ServerException($this);
} catch (ClientExceptionInterface $ex) {
} catch (ClientExceptionInterface) {
throw new ClientException($this);
} catch (RedirectionExceptionInterface $ex) {
} catch (RedirectionExceptionInterface) {
throw new RedirectionException($this);
}
}
Expand All @@ -99,11 +99,11 @@ public function getContent(bool $throw = true): string

try {
return $this->response->getContent($throw);
} catch (ServerExceptionInterface $ex) {
} catch (ServerExceptionInterface) {
throw new ServerException($this);
} catch (ClientExceptionInterface $ex) {
} catch (ClientExceptionInterface) {
throw new ClientException($this);
} catch (RedirectionExceptionInterface $ex) {
} catch (RedirectionExceptionInterface) {
throw new RedirectionException($this);
}
}
Expand All @@ -126,11 +126,11 @@ public function toArray(bool $throw = true): array

try {
return $this->response->toArray($throw);
} catch (ServerExceptionInterface $ex) {
} catch (ServerExceptionInterface) {
throw new ServerException($this);
} catch (ClientExceptionInterface $ex) {
} catch (ClientExceptionInterface) {
throw new ClientException($this);
} catch (RedirectionExceptionInterface $ex) {
} catch (RedirectionExceptionInterface) {
throw new RedirectionException($this);
}
}
Expand Down Expand Up @@ -239,7 +239,7 @@ private function logResponseContent(bool $isDestruct = false): void
if ($isDestruct) {
try {
$this->response->getContent(false); // load content
} catch (\Throwable $ex) {
} catch (\Throwable) {

}
}
Expand Down

0 comments on commit 80352cb

Please sign in to comment.