Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvenga authored and github-actions[bot] committed Nov 12, 2022
1 parent 5cd9578 commit 3b995da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/Engines/ScoutPhpmorphyEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public function search(Builder $builder)

public function paginate(Builder $builder, $perPage, $page)
{

$index = $this->buildIndexQuery($builder)
->selectRaw('`index`, `key`, COUNT(*) AS `count_lines`, SUM(`count_words`) AS `sum_count_words`')
->groupBy('index', 'key')
Expand All @@ -71,7 +70,6 @@ public function mapIds($results)

public function map(Builder $builder, $results, $model)
{

if ($results->isEmpty()) {
return $model->newCollection();
}
Expand Down
4 changes: 2 additions & 2 deletions src/Models/Word.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Word extends Model

public function getTable()
{
return config('scout-phpmorphy.table_prefix') . 'words';
return config('scout-phpmorphy.table_prefix').'words';
}

protected $fillable = [
Expand Down Expand Up @@ -46,7 +46,7 @@ public static function getOrCreateItems($array): Collection
public static function getItems($array): Collection
{
$items = new Collection;
if (! empty($array)) {
if (! empty($array)) {
$items = self::query()
->when(array_filter($array, fn ($word) => $word['is_dictionary']),
fn (Builder $query, $words) => $query->whereIn('word', collect($words)->pluck('word')))
Expand Down

0 comments on commit 3b995da

Please sign in to comment.