From 80352cbf70fd9b97a11424e16bf71dd9b362cc42 Mon Sep 17 00:00:00 2001 From: Libor M Date: Tue, 30 Jan 2024 17:18:34 +0100 Subject: [PATCH] fix code style --- src/Response/LoggableResponse.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Response/LoggableResponse.php b/src/Response/LoggableResponse.php index d482b53..9be3506 100644 --- a/src/Response/LoggableResponse.php +++ b/src/Response/LoggableResponse.php @@ -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); } } @@ -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); } } @@ -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); } } @@ -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) { } }