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); }