add test batches
This commit is contained in:
@@ -40,11 +40,11 @@ class UserListService
|
||||
$parentType = $guardianMap[$userId] ?? '';
|
||||
|
||||
$isSecond = false;
|
||||
if ($userId > 0 && ! empty($secondByUserId[$userId])) {
|
||||
if ($userId > 0 && !empty($secondByUserId[$userId])) {
|
||||
$isSecond = true;
|
||||
} else {
|
||||
$email = trim(strtolower((string) $user->email));
|
||||
if ($email !== '' && ! empty($secondByEmail[$email])) {
|
||||
if ($email !== '' && !empty($secondByEmail[$email])) {
|
||||
$isSecond = true;
|
||||
}
|
||||
}
|
||||
@@ -91,7 +91,7 @@ class UserListService
|
||||
|
||||
private function guardianTypeMap(): array
|
||||
{
|
||||
if (! Schema::hasTable('family_guardians')) {
|
||||
if (!Schema::hasTable('family_guardians')) {
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ class UserListService
|
||||
|
||||
private function secondParentMaps(): array
|
||||
{
|
||||
if (! Schema::hasTable('parents')) {
|
||||
if (!Schema::hasTable('parents')) {
|
||||
return [[], []];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user