Skip to content

Commit 7b2f8c2

Browse files
committed
Remove some class implementations
1 parent 0617c5a commit 7b2f8c2

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

src/AbstractModelRecordImport.php

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@
99
use Maatwebsite\Excel\Concerns\Importable;
1010
use Maatwebsite\Excel\Concerns\WithEvents;
1111
use Illuminate\Contracts\Queue\ShouldQueue;
12+
use Maatwebsite\Excel\Concerns\WithStartRow;
1213
use Illuminate\Foundation\Bus\PendingDispatch;
13-
use Maatwebsite\Excel\Concerns\WithHeadingRow;
1414
use FromHome\ModelUpload\Models\ModelUploadFile;
1515
use Maatwebsite\Excel\Concerns\WithBatchInserts;
1616
use Maatwebsite\Excel\Concerns\WithChunkReading;
1717
use Maatwebsite\Excel\Concerns\SkipsUnknownSheets;
18-
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
19-
use Maatwebsite\Excel\Concerns\WithCustomStartCell;
2018
use FromHome\ModelUpload\Jobs\ProcessModelRecordJob;
2119

22-
abstract class AbstractModelRecordImport implements ShouldQueue, SkipsUnknownSheets, WithBatchInserts, WithChunkReading, WithCustomStartCell, WithEvents, WithHeadingRow, WithMultipleSheets
20+
abstract class AbstractModelRecordImport implements ShouldQueue, SkipsUnknownSheets, WithBatchInserts, WithChunkReading, WithStartRow, WithEvents
2321
{
2422
use Importable;
2523

@@ -72,19 +70,10 @@ public function registerEvents(): array
7270
];
7371
}
7472

75-
public function sheets(): array
76-
{
77-
return [
78-
'DATA' => $this,
79-
];
80-
}
81-
82-
public function onUnknownSheet($sheetName): void
83-
{
84-
}
73+
public function onUnknownSheet($sheetName): void {}
8574

86-
public function startCell(): string
75+
public function startRow(): int
8776
{
88-
return ModelUpload::importStartCell();
77+
return ModelUpload::importStartRow();
8978
}
9079
}

0 commit comments

Comments
 (0)