Skip to content

Commit

Permalink
Merge branch 'php8-test' of github.com:matchish/laravel-scout-elastic…
Browse files Browse the repository at this point in the history
…search into php8-test
  • Loading branch information
matchish committed May 13, 2021
2 parents daae798 + f1197df commit 69f89e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/Engines/ElasticSearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Elasticsearch\Common\Exceptions\ServerErrorResponseException;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\LazyCollection;
use Laravel\Scout\Builder;
use Laravel\Scout\Builder as BaseBuilder;
use Laravel\Scout\Engines\Engine;
use Matchish\ScoutElasticSearch\ElasticSearch\HitsIteratorAggregate;
Expand All @@ -15,7 +15,6 @@
use Matchish\ScoutElasticSearch\ElasticSearch\SearchResults;
use ONGR\ElasticsearchDSL\Query\MatchAllQuery;
use ONGR\ElasticsearchDSL\Search;
use Laravel\Scout\Builder;

final class ElasticSearchEngine extends Engine
{
Expand Down Expand Up @@ -132,14 +131,15 @@ public function lazyMap(Builder $builder, $results, $model)
throw new \Error('Not implemented');
}

/**
/**
* Create a search index.
*
* @param string $name
* @param array $options
* @return mixed
*/
public function createIndex($name, array $options = []) {
public function createIndex($name, array $options = [])
{
throw new \Error('Not implemented');
}

Expand All @@ -149,11 +149,11 @@ public function createIndex($name, array $options = []) {
* @param string $name
* @return mixed
*/
public function deleteIndex($name) {
public function deleteIndex($name)
{
throw new \Error('Not implemented');
}


/**
* {@inheritdoc}
*/
Expand Down
3 changes: 2 additions & 1 deletion src/MixedSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ final class MixedSearch
*/
public static function search($query = '', $callback = null)
{
return new Builder(new class extends Model {
return new Builder(new class extends Model
{
use Searchable;
}, $query, $callback);
}
Expand Down
1 change: 0 additions & 1 deletion src/ScoutElasticSearchServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public function boot(): void
});

$this->registerCommands();

}

/**
Expand Down

0 comments on commit 69f89e1

Please sign in to comment.