Apply fixes from StyleCI

This commit is contained in:
Alexander Skvortsov 2021-03-13 20:49:35 +00:00 committed by StyleCI Bot
parent 6eb2c9e574
commit c01dc63c5d
2 changed files with 5 additions and 3 deletions

View File

@ -17,8 +17,8 @@ use Flarum\Suspend\Event\Unsuspended;
use Flarum\Suspend\Listener;
use Flarum\Suspend\Notification\UserSuspendedBlueprint;
use Flarum\Suspend\Notification\UserUnsuspendedBlueprint;
use Flarum\Suspend\RevokeAccessFromSuspendedUsers;
use Flarum\Suspend\Query\SuspendedFilterGambit;
use Flarum\Suspend\RevokeAccessFromSuspendedUsers;
use Flarum\User\Event\Saving;
use Flarum\User\Filter\UserFilterer;
use Flarum\User\Search\UserSearcher;

View File

@ -33,7 +33,8 @@ class SuspendedFilterGambit extends AbstractRegexGambit implements FilterInterfa
$this->users = $users;
}
protected function getGambitPattern() {
protected function getGambitPattern()
{
return 'is:suspended';
}
@ -57,7 +58,8 @@ class SuspendedFilterGambit extends AbstractRegexGambit implements FilterInterfa
$this->constrain($search->getQuery(), $negate);
}
public function getFilterKey(): string {
public function getFilterKey(): string
{
return 'suspended';
}