From 975abf35aa005b90b2869a6031a75630d7ce90aa Mon Sep 17 00:00:00 2001 From: Lupacescu Eduard Date: Tue, 4 Aug 2020 06:53:06 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Repositories/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repositories/Repository.php b/src/Repositories/Repository.php index 002e1ac55..64a796d74 100644 --- a/src/Repositories/Repository.php +++ b/src/Repositories/Repository.php @@ -522,7 +522,7 @@ public function resolveRelationships($request): array } $withs[$relation] = $paginator instanceof Collection - ? $paginator->map(fn(Model $item) => [ + ? $paginator->map(fn (Model $item) => [ 'attributes' => $item->toArray(), ]) : $paginator->toArray();