Skip to content

Commit

Permalink
🪄 Code Style Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammyjo20 authored and github-actions[bot] committed Dec 2, 2024
1 parent e4ce17c commit e2ecce7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Http/Faking/MockClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion src/Traits/Connector/SendsRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e2ecce7

Please sign in to comment.