From be63b28437f73a2e35b0ca83333b1f45a4c23096 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Tue, 10 Jan 2023 11:44:00 +0000 Subject: [PATCH] Apply fixes from StyleCI --- extensions/mentions/src/ConfigureMentions.php | 2 -- framework/core/src/Formatter/Formatter.php | 10 +++++----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/extensions/mentions/src/ConfigureMentions.php b/extensions/mentions/src/ConfigureMentions.php index 5b4c7ac71..8378e3285 100644 --- a/extensions/mentions/src/ConfigureMentions.php +++ b/extensions/mentions/src/ConfigureMentions.php @@ -11,13 +11,11 @@ namespace Flarum\Mentions; use Flarum\Group\Group; use Flarum\Http\UrlGenerator; -use Flarum\Post\CommentPost; use Flarum\Post\PostRepository; use Flarum\Settings\SettingsRepositoryInterface; use Flarum\User\User; use Illuminate\Support\Str; use s9e\TextFormatter\Configurator; -use s9e\TextFormatter\Parser; class ConfigureMentions { diff --git a/framework/core/src/Formatter/Formatter.php b/framework/core/src/Formatter/Formatter.php index 24808a2f8..2176cfb69 100644 --- a/framework/core/src/Formatter/Formatter.php +++ b/framework/core/src/Formatter/Formatter.php @@ -91,11 +91,11 @@ class Formatter { $parser = $this->getParser($context); - /* - * Can be injected in tag or attribute filters by calling: - * ->addParameterByName('actor') on the filter. - * See the mentions extension's ConfigureMentions.php for an example. - */ + /* + * Can be injected in tag or attribute filters by calling: + * ->addParameterByName('actor') on the filter. + * See the mentions extension's ConfigureMentions.php for an example. + */ $parser->registeredVars['actor'] = $user; foreach ($this->parsingCallbacks as $callback) {