From 0cb10583137491883a467c3741051be236507ee3 Mon Sep 17 00:00:00 2001 From: Mohammad Alavi Date: Wed, 20 Apr 2022 17:18:15 +0430 Subject: [PATCH] refactor: add field types --- app/Ship/Parents/Transformers/Transformer.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Ship/Parents/Transformers/Transformer.php b/app/Ship/Parents/Transformers/Transformer.php index ae3780b00..8bc11432a 100644 --- a/app/Ship/Parents/Transformers/Transformer.php +++ b/app/Ship/Parents/Transformers/Transformer.php @@ -8,12 +8,11 @@ abstract class Transformer extends AbstractTransformer { /** - * @param $adminResponse - * @param $clientResponse - * - * @return array + * @param array $adminResponse + * @param array $clientResponse + * @return array */ - public function ifAdmin($adminResponse, $clientResponse): array + public function ifAdmin(array $adminResponse, array $clientResponse): array { $user = Auth::user();