Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Dec 8, 2021
1 parent 16503f7 commit 14cb189
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Includes.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function parse(Request $request, string $prefix): Collection
abort(400, 'The include parameter must be a comma seperated list of relationship paths.');
}

return Collection::make(explode(',', $includes))
return Collection::make(explode(',', $includes))
->when($prefix !== '', function (Collection $includes) use ($prefix): Collection {
return $includes->filter(fn (string $include): bool => Str::startsWith($include, $prefix));
})
Expand Down

0 comments on commit 14cb189

Please sign in to comment.