Skip to content

Commit

Permalink
Update ApiHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
joy2362 authored Jun 21, 2023
1 parent 5b53656 commit 7e31cbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Helper/ApiHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function success(array $items = [], int $status = null): Collectio
public static function failed(array $items = [], int $status = null): Collection
{
$res = [
'success' => true,
'success' => false,
'status' => $status ?? Response::HTTP_UNPROCESSABLE_ENTITY,
];

Expand Down Expand Up @@ -91,4 +91,4 @@ public static function generateStubContents($stub, $stubVariables = [], $separat
return $contents;
}

}
}

0 comments on commit 7e31cbf

Please sign in to comment.