From d3bb5372394367507b3b1697c23facd77fae6c07 Mon Sep 17 00:00:00 2001 From: Lupacescu Eduard Date: Sun, 22 Dec 2019 18:59:12 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Services/Search/SearchService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Services/Search/SearchService.php b/src/Services/Search/SearchService.php index cde32867e..a225167a6 100644 --- a/src/Services/Search/SearchService.php +++ b/src/Services/Search/SearchService.php @@ -108,7 +108,7 @@ protected function prepareOperator($fields) protected function prepareMatchFields() { foreach ($this->model::getMatchByFields() as $key => $type) { - if ( ! $this->request->has($key) && ! data_get($this->fixedInput, "match.$key")) { + if (! $this->request->has($key) && ! data_get($this->fixedInput, "match.$key")) { continue; } @@ -226,7 +226,7 @@ protected function prepareSearchFields($search) $likeOperator = $connectionType == 'pgsql' ? 'ilike' : 'like'; foreach ($this->model::getSearchableFields() as $column) { - $query->orWhere($this->model->qualifyColumn($column), $likeOperator, '%' . $search . '%'); + $query->orWhere($this->model->qualifyColumn($column), $likeOperator, '%'.$search.'%'); } });