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:
parent
132fdea659
commit
be63b28437
@ -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
|
||||||
{
|
{
|
||||||
|
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user