From 6e8f5bf6797a83f8ea7b59c494042fc58f8a3281 Mon Sep 17 00:00:00 2001 From: Abdullah Al Mamun <41566116+mamun724682@users.noreply.github.com> Date: Wed, 15 May 2024 11:48:41 +0600 Subject: [PATCH] Fix: filter layouts return data --- src/Actions/ManagesLayout.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Actions/ManagesLayout.php b/src/Actions/ManagesLayout.php index e36fbc8..202decb 100644 --- a/src/Actions/ManagesLayout.php +++ b/src/Actions/ManagesLayout.php @@ -15,7 +15,9 @@ trait ManagesLayout public function filterLayouts(array $queryParams = []) { $layouts = $this->get("layouts", $queryParams); - $layouts['data'] = array_map(function($value){ new Layout($value, $this); }, $layouts['data']); + $layouts['data'] = array_map(function ($value) { + return new Layout($value, $this); + }, $layouts['data']); return $layouts; } @@ -83,4 +85,4 @@ public function setLayoutAsDefault(string $layoutId) { return $this->post("layouts/$layoutId");; } -} \ No newline at end of file +}