Skip to content

Commit 5e37a0b

Browse files
author
user
committed
fix codestyle
1 parent cc6e22a commit 5e37a0b

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/PostgresEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ protected function performSearch(Builder $builder, $perPage = 0, $page = 1)
218218
->orderBy('rank', 'desc')
219219
->orderBy($builder->model->getKeyName());
220220
//if model use soft delete - without trashed
221-
if(method_exists($builder->model, 'getDeletedAtColumn')) {
221+
if (method_exists($builder->model, 'getDeletedAtColumn')) {
222222
$query->where($builder->model->getDeletedAtColumn(), null);
223223
}
224224
if ($perPage > 0) {

tests/PostgresEngineTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function test_update_adds_object_to_index()
3737
$table->shouldReceive('where')
3838
->with('id', '=', 1)
3939
->andReturnSelf();
40-
40+
4141
$table->shouldReceive('update')
4242
->with(['searchable' => 'foo']);
4343

@@ -98,18 +98,18 @@ public function test_search()
9898

9999
$engine->search($builder);
100100
}
101-
101+
102102
public function test_search_with_soft_delete()
103103
{
104104
list($engine, $db) = $this->getEngine();
105-
105+
106106
$table = $this->setDbExpectations($db);
107-
107+
108108
$table->shouldReceive('skip')->with(0)->andReturnSelf()
109109
->shouldReceive('limit')->with(5)->andReturnSelf()
110110
->shouldReceive('where')->with('bar', 1)->andReturnSelf()
111111
->shouldReceive('where')->with('deleted_at', null);
112-
112+
113113
$db->shouldReceive('select')->with(null, ['foo', 1]);
114114

115115
$builder = new Builder(new TestWithSoftDeleteModel(), 'foo');
@@ -188,7 +188,7 @@ protected function setDbExpectations($db, $skip = 0, $limit = 5)
188188
->shouldReceive('orderBy')->with('rank', 'desc')->andReturnSelf()
189189
->shouldReceive('orderBy')->with('id')->andReturnSelf()
190190
->shouldReceive('toSql');
191-
191+
192192
return $table;
193193
}
194194
}
@@ -249,8 +249,8 @@ public function searchableAdditionalArray()
249249
}
250250

251251
class TestWithSoftDeleteModel extends Model
252-
{
253-
use \Illuminate\Database\Eloquent\SoftDeletes;
252+
{
253+
use \Illuminate\Database\Eloquent\SoftDeletes;
254254
public $id = 1;
255255

256256
public $text = 'Foo';

0 commit comments

Comments
 (0)