Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Commit

Permalink
Apply fixes from StyleCI (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
babenkoivan committed Mar 24, 2020
1 parent fe3e9a8 commit 513015f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Indexers/BulkIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function delete(Collection $models)

if ($documentRefresh = config('scout_elastic.document_refresh')) {
$bulkPayload->set('refresh', $documentRefresh);
}
}

$bulkPayload->set('client.ignore', 404);

Expand Down
3 changes: 1 addition & 2 deletions src/Indexers/SingleIndexer.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ public function delete(Collection $models)
$models->each(function ($model) {
$payload = new DocumentPayload($model);


if ($documentRefresh = config('scout_elastic.document_refresh')) {
$payload->set('refresh', $documentRefresh);
}

$payload->set('client.ignore', 404);

ElasticClient::delete($payload->get());
Expand Down
4 changes: 2 additions & 2 deletions tests/Indexers/SingleIndexerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ public function testDeleteWithSpecifiedDocumentRefreshOption()
],
]);

(new SingleIndexer())
(new SingleIndexer())
->delete($this->models);

$this->addToAssertionCount(1);
$this->addToAssertionCount(1);
}
}

0 comments on commit 513015f

Please sign in to comment.