Skip to content

Commit

Permalink
Update usercare.php, DataRecordsChecker.php and some migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
mawuva committed Sep 15, 2021
1 parent 5404b61 commit 91b9665
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/usercare.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'enable' => true,
'name' => 'Account Type',
'resource_name' => 'account_type',
'model' => null,
'model' => Mawuekom\Usercare\Models\AccountType::class,

'table' => [
'name' => env('USERCARE_ACCOUNT_TYPES_DATABASE_TABLE', 'account_types'),
Expand Down
Empty file.
4 changes: 2 additions & 2 deletions src/Traits/DataRecordsChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ trait DataRecordsChecker
*
* @return array
*/
public function checkDataResource($resource, string $message, int $code = Response::HTTP_NOT_FOUND, $exception = false): array
public function checkDataResource($resource, string $message, int $code = Response::HTTP_NOT_FOUND, $exception = false)
{
if (is_null($resource)) {
if ($exception) {
Expand All @@ -42,7 +42,7 @@ public function checkDataResource($resource, string $message, int $code = Respon
*/
public function checkDataRecords($records, string $message, int $code = Response::HTTP_NO_CONTENT, $exception = false): array
{
if ($records ->count() !== 0) {
if ($records ->count() === 0) {
if ($exception) {
throw new Exception($message, $code);
}
Expand Down

0 comments on commit 91b9665

Please sign in to comment.