Skip to content

Commit a0a3e20

Browse files
committed
Fix CS.
1 parent 5a297e9 commit a0a3e20

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/PostgresEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ protected function toVector(Model $model)
115115
// by the selected text search configuration which can be set globally in config/scout.php
116116
// file or individually for each model in searchableOptions()
117117
// See https://www.postgresql.org/docs/current/static/textsearch-controls.html
118-
$vector = "to_tsvector(COALESCE(?, get_current_ts_config()), ?)";
118+
$vector = 'to_tsvector(COALESCE(?, get_current_ts_config()), ?)';
119119

120120
$select = $fields->map(function ($value, $key) use ($model, $vector, $bindings) {
121121
$bindings->push($this->searchConfig($model) ?: null)

tests/PostgresEngineTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function test_update_adds_object_to_index()
2727
->andReturn($query = Mockery::mock('stdClass'));
2828
$query->shouldReceive('selectRaw')
2929
->with(
30-
"to_tsvector(COALESCE(?, get_current_ts_config()), ?) || setweight(to_tsvector(COALESCE(?, get_current_ts_config()), ?), ?) AS tsvector",
30+
'to_tsvector(COALESCE(?, get_current_ts_config()), ?) || setweight(to_tsvector(COALESCE(?, get_current_ts_config()), ?), ?) AS tsvector',
3131
[null, 'Foo', null, '', 'B']
3232
)
3333
->andReturnSelf();
@@ -211,11 +211,11 @@ protected function setDbExpectations($db)
211211
$db->shouldReceive('table')
212212
->andReturn($table = Mockery::mock('stdClass'));
213213
$db->shouldReceive('raw')
214-
->with("plainto_tsquery(COALESCE(?, get_current_ts_config()), ?) AS query")
215-
->andReturn("plainto_tsquery(COALESCE(?, get_current_ts_config()), ?) AS query");
214+
->with('plainto_tsquery(COALESCE(?, get_current_ts_config()), ?) AS query')
215+
->andReturn('plainto_tsquery(COALESCE(?, get_current_ts_config()), ?) AS query');
216216

217217
$table->shouldReceive('crossJoin')
218-
->with("plainto_tsquery(COALESCE(?, get_current_ts_config()), ?) AS query")
218+
->with('plainto_tsquery(COALESCE(?, get_current_ts_config()), ?) AS query')
219219
->andReturnSelf()
220220
->shouldReceive('select')
221221
->with('id')

0 commit comments

Comments
 (0)