diff --git a/src/Response.php b/src/Response.php index be18e54..1853b68 100644 --- a/src/Response.php +++ b/src/Response.php @@ -349,7 +349,7 @@ protected function formatResourceCollectionResponse($resource, string $message = $paginationInformation = $this->formatPaginatedData($paginated); $data = array_merge_recursive(['data' => $resource->resolve(request())], $resource->with(request()), $resource->additional, $paginationInformation); - }else{ + } else { $data = array_merge_recursive($resource->resolve(request()), $resource->with(request()), $resource->additional); }