Skip to content

Commit 9faab2a

Browse files
committed
Merge branch 'main' of github.com:limenet/laravel-elastica-bridge
2 parents 692e56a + e1f71d9 commit 9faab2a

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

src/Commands/IndexCommand.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Limenet\LaravelElasticaBridge\Commands;
66

7-
use Illuminate\Bus\Batch;
87
use Illuminate\Console\Command;
98
use Illuminate\Support\Facades\Bus;
109
use Limenet\LaravelElasticaBridge\Client\ElasticaClient;

src/Jobs/PopulateBatchIndex.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Illuminate\Bus\Batchable;
99
use Illuminate\Bus\Queueable;
1010
use Illuminate\Contracts\Queue\ShouldQueue;
11-
use Illuminate\Database\Eloquent\Model;
1211
use Illuminate\Foundation\Bus\Dispatchable;
1312
use Illuminate\Queue\InteractsWithQueue;
1413
use Illuminate\Queue\SerializesModels;

src/Jobs/PopulateIndex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function handle(): void
4141
$modelCount = $indexDocument::count();
4242

4343
for ($batchNumber = 0; $batchNumber < ceil($modelCount / $this->indexConfig->getBatchSize()); $batchNumber++) {
44-
$jobs[]=new PopulateBatchIndex($index, $indexDocument, $this->indexConfig->getBatchSize(), $batchNumber * $this->indexConfig->getBatchSize());
44+
$jobs[] = new PopulateBatchIndex($index, $indexDocument, $this->indexConfig->getBatchSize(), $batchNumber * $this->indexConfig->getBatchSize());
4545
}
4646
}
4747

0 commit comments

Comments
 (0)