Skip to content

Commit 1b94f76

Browse files
committed
Fix CS
1 parent a562144 commit 1b94f76

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/PostgresEngine.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
namespace ScoutEngines\Postgres;
44

5-
use Illuminate\Database\ConnectionResolverInterface;
6-
use Illuminate\Database\Eloquent\Collection;
7-
use Illuminate\Database\Eloquent\Model;
85
use Laravel\Scout\Builder;
96
use Laravel\Scout\Engines\Engine;
7+
use Illuminate\Database\Eloquent\Model;
8+
use Illuminate\Database\Eloquent\Collection;
9+
use Illuminate\Database\ConnectionResolverInterface;
1010

1111
class PostgresEngine extends Engine
1212
{
@@ -106,12 +106,13 @@ protected function toVector(Model $model)
106106

107107
$select = $fields->keys()
108108
->map(function ($key) use ($model) {
109-
$vector = "to_tsvector(?)";
109+
$vector = 'to_tsvector(?)';
110110
if ($label = $this->rankFieldWeightLabel($model, $key)) {
111111
$vector = "setweight($vector, '$label')";
112112
}
113+
113114
return $vector;
114-
})->implode(' || ');
115+
})->implode(' || ');
115116

116117
return $this->database
117118
->query()

src/PostgresEngineServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace ScoutEngines\Postgres;
44

5-
use Illuminate\Support\ServiceProvider;
65
use Laravel\Scout\EngineManager;
6+
use Illuminate\Support\ServiceProvider;
77

88
class PostgresEngineServiceProvider extends ServiceProvider
99
{

tests/PostgresEngineTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
use Mockery;
66
use Laravel\Scout\Builder;
77
use Illuminate\Database\Connection;
8-
use Illuminate\Database\ConnectionResolverInterface;
9-
use Illuminate\Database\Eloquent\Collection;
108
use Illuminate\Database\Eloquent\Model;
119
use ScoutEngines\Postgres\PostgresEngine;
10+
use Illuminate\Database\Eloquent\Collection;
11+
use Illuminate\Database\ConnectionResolverInterface;
1212

1313
class PostgresEngineTest extends AbstractTestCase
1414
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy