diff --git a/app/Filament/Imports/Helper/ImportFixtures.php b/app/Filament/Imports/Helper/ImportFixtures.php index 7750d0d8..9a7990c3 100644 --- a/app/Filament/Imports/Helper/ImportFixtures.php +++ b/app/Filament/Imports/Helper/ImportFixtures.php @@ -7,8 +7,6 @@ use Illuminate\Support\Carbon; use Illuminate\Support\LazyCollection; use Spatie\SimpleExcel\SimpleExcelReader; -use function PHPUnit\Framework\isEmpty; - class ImportFixtures { public static function run(string $filePath): void @@ -22,10 +20,6 @@ class ImportFixtures $row = array_values($row); - if (isEmpty($row[1])) { - return false; - } - /* 0 => 1 1 => 87 diff --git a/app/Filament/Imports/Helper/ImportPlayer.php b/app/Filament/Imports/Helper/ImportPlayer.php index b000f6a6..fce7131d 100644 --- a/app/Filament/Imports/Helper/ImportPlayer.php +++ b/app/Filament/Imports/Helper/ImportPlayer.php @@ -7,8 +7,6 @@ use Illuminate\Support\Carbon; use Illuminate\Support\LazyCollection; use Spatie\SimpleExcel\SimpleExcelReader; -use function PHPUnit\Framework\isEmpty; - class ImportPlayer { public static function run(string $filePath): void @@ -100,10 +98,10 @@ class ImportPlayer $update_array = []; foreach ($fieldnames as $key => $name) { if ($key == 1) { - if (isEmpty($row[$key])) { + $match_id = (int) $row[$key]; + if (! $match_id) { return false; } - $match_id = (int) $row[$key]; } elseif ($key == 2) { $ss_player_id = (int) $row[$key]; } elseif ($key == 3) {