Skip to content

Commit

Permalink
fix(trait)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadreza1388 committed Sep 12, 2024
1 parent f9089bf commit d8d6e97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Trait/BaseApiTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function fail2(mixed $data = null, int $code = 500, bool $message = false
return $this->formatResponse2($message, $data, $code);
}

private function formatResponse(string $status, mixed $data = null, int $code): array
private function formatResponse(string $status, mixed $data, int $code): array
{
return [
'status' => $status,
Expand All @@ -33,7 +33,7 @@ private function formatResponse(string $status, mixed $data = null, int $code):
];
}

private function formatResponse2(bool $status, mixed $data = null, int $code): array
private function formatResponse2(bool $status, mixed $data, int $code): array
{
return [
'status' => $status,
Expand Down

0 comments on commit d8d6e97

Please sign in to comment.