Skip to content

Commit

Permalink
Symmetry
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmccreary committed Nov 25, 2024
1 parent 4eb8fc0 commit b1e5e2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Illuminate/Http/Client/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,11 @@ public function stubUrl($url, $callback)
return static::response($callback);
}

return $callback instanceof Closure || $callback instanceof ResponseSequence
? $callback($request, $options)
: $callback;
if ($callback instanceof Closure || $callback instanceof ResponseSequence) {
return $callback($request, $options);
}

return $callback;
});
}

Expand Down

0 comments on commit b1e5e2e

Please sign in to comment.