From 827b19e22c1eaa07b5234e5927b7bab8e8a3fd9c Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Tue, 3 Jan 2023 03:43:16 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Support/Serializers/ArraySerializer.php | 2 +- src/Support/Serializers/SimpleArraySerializer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Support/Serializers/ArraySerializer.php b/src/Support/Serializers/ArraySerializer.php index 948c9cb..9602ea3 100644 --- a/src/Support/Serializers/ArraySerializer.php +++ b/src/Support/Serializers/ArraySerializer.php @@ -24,7 +24,7 @@ class ArraySerializer extends FractalArraySerializer * @param array $data * @return array */ - public function collection(?string $resourceKey, array $data):array + public function collection(?string $resourceKey, array $data): array { $paginationDataField = Config::get('response.format.fields.data.fields.data.alias', 'data'); diff --git a/src/Support/Serializers/SimpleArraySerializer.php b/src/Support/Serializers/SimpleArraySerializer.php index 1a3bb0b..064632b 100644 --- a/src/Support/Serializers/SimpleArraySerializer.php +++ b/src/Support/Serializers/SimpleArraySerializer.php @@ -20,7 +20,7 @@ class SimpleArraySerializer extends ArraySerializer * @param array $data * @return array */ - public function collection(?string $resourceKey, array $data):array + public function collection(?string $resourceKey, array $data): array { return $data; }