From 05324a0195810f518dd3b2420fc0b77a00c29e49 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Thu, 12 Oct 2023 18:09:48 +0000 Subject: [PATCH] Apply fixes from StyleCI --- .../src/Api/Controller/ListTagsController.php | 1 - framework/core/src/Api/ApiServiceProvider.php | 2 +- framework/core/src/Extend/SearchDriver.php | 2 +- framework/core/src/Extend/SearchIndex.php | 8 +++++++- framework/core/src/Search/AbstractDriver.php | 7 +++++++ .../src/Search/Database/AbstractSearcher.php | 2 -- .../Search/Database/DatabaseSearchDriver.php | 7 +++++++ framework/core/src/Search/IndexerInterface.php | 17 ++++++++++++----- framework/core/src/Search/Job/IndexJob.php | 7 +++++++ .../core/src/Search/Listener/ModelObserver.php | 7 +++++++ framework/core/src/Search/SearchManager.php | 7 +++++++ .../core/src/Search/SearchServiceProvider.php | 2 +- framework/core/src/Search/SearchState.php | 9 ++++++++- framework/core/src/Search/SearcherInterface.php | 11 +++++++++-- .../extenders/SimpleFlarumSearchTest.php | 4 ---- 15 files changed, 74 insertions(+), 19 deletions(-) diff --git a/extensions/tags/src/Api/Controller/ListTagsController.php b/extensions/tags/src/Api/Controller/ListTagsController.php index 0715ebcbfc..2f23267a6a 100644 --- a/extensions/tags/src/Api/Controller/ListTagsController.php +++ b/extensions/tags/src/Api/Controller/ListTagsController.php @@ -15,7 +15,6 @@ use Flarum\Search\SearchCriteria; use Flarum\Search\SearchManager; use Flarum\Tags\Api\Serializer\TagSerializer; -use Flarum\Tags\Search\TagSearcher; use Flarum\Tags\Tag; use Flarum\Tags\TagRepository; use Psr\Http\Message\ServerRequestInterface; diff --git a/framework/core/src/Api/ApiServiceProvider.php b/framework/core/src/Api/ApiServiceProvider.php index 91a481ced6..5d1e28b192 100644 --- a/framework/core/src/Api/ApiServiceProvider.php +++ b/framework/core/src/Api/ApiServiceProvider.php @@ -56,7 +56,7 @@ public function register(): void $this->container->singleton('flarum.api.middleware', function () { return [ HttpMiddleware\InjectActorReference::class, -// 'flarum.api.error_handler', + // 'flarum.api.error_handler', HttpMiddleware\ParseJsonBody::class, Middleware\FakeHttpMethods::class, HttpMiddleware\StartSession::class, diff --git a/framework/core/src/Extend/SearchDriver.php b/framework/core/src/Extend/SearchDriver.php index 114fefe870..e18808bc7a 100644 --- a/framework/core/src/Extend/SearchDriver.php +++ b/framework/core/src/Extend/SearchDriver.php @@ -13,9 +13,9 @@ use Flarum\Search\AbstractDriver; use Flarum\Search\AbstractFulltextFilter; use Flarum\Search\Database\AbstractSearcher; -use Flarum\Search\SearchState; use Flarum\Search\Filter\FilterInterface; use Flarum\Search\SearchCriteria; +use Flarum\Search\SearchState; use Illuminate\Contracts\Container\Container; class SearchDriver implements ExtenderInterface diff --git a/framework/core/src/Extend/SearchIndex.php b/framework/core/src/Extend/SearchIndex.php index 5f42be1cf1..277ad55f8b 100644 --- a/framework/core/src/Extend/SearchIndex.php +++ b/framework/core/src/Extend/SearchIndex.php @@ -1,8 +1,14 @@