From e2ecce7f5feeaf89fc8f10d3d5bfe2521b3c5087 Mon Sep 17 00:00:00 2001 From: Sammyjo20 Date: Mon, 2 Dec 2024 23:59:30 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=84=20Code=20Style=20Fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/Faking/MockClient.php | 6 +++--- src/Traits/Connector/SendsRequests.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Http/Faking/MockClient.php b/src/Http/Faking/MockClient.php index 2e92a8b8..4d78c607 100644 --- a/src/Http/Faking/MockClient.php +++ b/src/Http/Faking/MockClient.php @@ -352,7 +352,7 @@ public function findResponseByRequest(string $request, ?int $index = null): ?Res return null; } - if(! is_null($index)) { + if (! is_null($index)) { $recordedResponse = $this->getRecordedResponses()[$index]; if ($recordedResponse->getPendingRequest()->getRequest() instanceof $request) { @@ -384,7 +384,7 @@ public function findResponseByRequestUrl(string $url, ?int $index = null): ?Resp return null; } - if(! is_null($index)) { + if (! is_null($index)) { $response = $this->getRecordedResponses()[$index]; $pendingRequest = $response->getPendingRequest(); @@ -451,7 +451,7 @@ private function checkClosureAgainstResponses(callable $closure, ?int $index = n return false; } - if(! is_null($index)) { + if (! is_null($index)) { $response = $this->getRecordedResponses()[$index]; $request = $response->getPendingRequest()->getRequest(); diff --git a/src/Traits/Connector/SendsRequests.php b/src/Traits/Connector/SendsRequests.php index d4fe36d9..7e0f8b4d 100644 --- a/src/Traits/Connector/SendsRequests.php +++ b/src/Traits/Connector/SendsRequests.php @@ -93,7 +93,7 @@ public function send(Request $request, MockClient $mockClient = null, callable $ $exceptionResponse = $exception instanceof RequestException ? $exception->getResponse() : null; // If the exception is a FatalRequestException, we'll execute the fatal pipeline - if($exception instanceof FatalRequestException) { + if ($exception instanceof FatalRequestException) { $exception->getPendingRequest()->executeFatalPipeline($exception); }