Skip to content

Commit

Permalink
Update DataRecordsChecker.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mawuva authored Sep 15, 2021
1 parent 91b9665 commit 68dc46b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Traits/DataRecordsChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function checkDataResource($resource, string $message, int $code = Respon
/**
* Check if the given records or collection contains data or not
*
* @param [type] $records
* @param [type] $record
* @param string $message
* @param int $code
* @param bool $exception
Expand All @@ -40,7 +40,7 @@ public function checkDataResource($resource, string $message, int $code = Respon
*
* @return array
*/
public function checkDataRecords($records, string $message, int $code = Response::HTTP_NO_CONTENT, $exception = false): array
public function checkDataRecords($records, string $message, int $code = Response::HTTP_NO_CONTENT, $exception = false)
{
if ($records ->count() === 0) {
if ($exception) {
Expand All @@ -50,4 +50,4 @@ public function checkDataRecords($records, string $message, int $code = Response
return failure_response($message, null, $code);
}
}
}
}

0 comments on commit 68dc46b

Please sign in to comment.