Skip to content

Commit

Permalink
refactor: add field types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Apr 20, 2022
1 parent 059ec24 commit 0cb1058
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/Ship/Parents/Transformers/Transformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 0cb1058

Please sign in to comment.