Skip to content

Commit 4066832

Browse files
committed
Merge branch 'main' of github.com:limenet/laravel-elastica-bridge
2 parents a6f2335 + 9c8c290 commit 4066832

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/App/Models/Product.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use Illuminate\Database\Eloquent\Factories\Factory;
66
use Illuminate\Database\Eloquent\Factories\HasFactory;
77
use Illuminate\Database\Eloquent\Model;
8-
use Limenet\LaravelElasticaBridge\Index\IndexInterface;
98
use Limenet\LaravelElasticaBridge\Model\ElasticsearchableInterface;
109
use Limenet\LaravelElasticaBridge\Model\ElasticsearchableTrait;
1110
use Limenet\LaravelElasticaBridge\Tests\Database\Factories\ProductFactory;

tests/Unit/ModelTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function setUp():void
2525
public function convert_to_elastica_document_customized()
2626
{
2727
Customer::all()
28-
->filter(fn(Customer $customer):bool=>$customer->shouldIndex($this->customerIndex))
28+
->filter(fn (Customer $customer):bool => $customer->shouldIndex($this->customerIndex))
2929
->each(function (Customer $customer):void {
3030
$document = $customer->toElasticaDocument($this->customerIndex);
3131
$this->assertInstanceOf(Document::class, $document);
@@ -45,7 +45,7 @@ public function convert_to_elastica_document_customized()
4545
public function convert_to_elastica_document_default()
4646
{
4747
Product::all()
48-
->filter(fn(Product $product):bool=>$product->shouldIndex($this->productIndex))
48+
->filter(fn (Product $product):bool => $product->shouldIndex($this->productIndex))
4949
->each(function (Product $product):void {
5050
$document = $product->toElasticaDocument($this->productIndex);
5151
$this->assertInstanceOf(Document::class, $document);

0 commit comments

Comments
 (0)