1
0
mirror of https://github.com/flarum/core.git synced 2025-06-05 22:25:29 +02:00

Apply fixes from StyleCI

This commit is contained in:
StyleCI Bot 2023-01-10 11:44:00 +00:00 committed by Sami Mazouz
parent 132fdea659
commit be63b28437
No known key found for this signature in database
2 changed files with 5 additions and 7 deletions

View File

@ -11,13 +11,11 @@ namespace Flarum\Mentions;
use Flarum\Group\Group; use Flarum\Group\Group;
use Flarum\Http\UrlGenerator; use Flarum\Http\UrlGenerator;
use Flarum\Post\CommentPost;
use Flarum\Post\PostRepository; use Flarum\Post\PostRepository;
use Flarum\Settings\SettingsRepositoryInterface; use Flarum\Settings\SettingsRepositoryInterface;
use Flarum\User\User; use Flarum\User\User;
use Illuminate\Support\Str; use Illuminate\Support\Str;
use s9e\TextFormatter\Configurator; use s9e\TextFormatter\Configurator;
use s9e\TextFormatter\Parser;
class ConfigureMentions class ConfigureMentions
{ {

View File

@ -91,11 +91,11 @@ class Formatter
{ {
$parser = $this->getParser($context); $parser = $this->getParser($context);
/* /*
* Can be injected in tag or attribute filters by calling: * Can be injected in tag or attribute filters by calling:
* ->addParameterByName('actor') on the filter. * ->addParameterByName('actor') on the filter.
* See the mentions extension's ConfigureMentions.php for an example. * See the mentions extension's ConfigureMentions.php for an example.
*/ */
$parser->registeredVars['actor'] = $user; $parser->registeredVars['actor'] = $user;
foreach ($this->parsingCallbacks as $callback) { foreach ($this->parsingCallbacks as $callback) {