Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Oct 31, 2023
1 parent 381fd1f commit ec81a0b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Controllers/ChangeTagSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use Flarum\Tags\Api\Serializer\TagSerializer;
use Flarum\Tags\Tag;
use Flarum\Tags\TagState;
use Flarum\User\User;
use FoF\FollowTags\Event;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Support\Arr;
Expand Down Expand Up @@ -46,7 +45,7 @@ protected function data(ServerRequestInterface $request, Document $document)
$actor->assertRegistered();

$tag = Tag::whereVisibleTo($actor)->findOrFail($id);

/** @var TagState $state */
$state = $tag->stateFor($actor);

Expand Down
2 changes: 1 addition & 1 deletion src/Jobs/NotificationJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class NotificationJob extends AbstractJob implements ShouldQueue
*
* @param NotificationSyncer $syncer
* @param BlueprintInterface $blueprint
* @param Collection<User> $recipients
* @param Collection<User> $recipients
*/
protected function sync(NotificationSyncer $syncer, BlueprintInterface $blueprint, Collection $recipients): void
{
Expand Down
1 change: 1 addition & 0 deletions src/Jobs/SendNotificationWhenDiscussionIsReTagged.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function handle(NotificationSyncer $notifications)

/**
* @var Collection<Tag>|null $tags
*
* @phpstan-ignore-next-line
*/
$tags = $this->discussion->tags;
Expand Down
1 change: 1 addition & 0 deletions src/Jobs/SendNotificationWhenDiscussionIsStarted.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function handle(NotificationSyncer $notifications)

/**
* @var Collection<Tag>|null $tags
*
* @phpstan-ignore-next-line
*/
$tags = $this->discussion->tags;
Expand Down
2 changes: 1 addition & 1 deletion src/Jobs/SendNotificationWhenReplyIsPosted.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public function handle(NotificationSyncer $notifications)
return;
}


$discussion = $this->post->discussion;

/**
* @var Collection<Tag>|null $tags
*
* @phpstan-ignore-next-line
*/
$tags = $discussion->tags;
Expand Down

0 comments on commit ec81a0b

Please sign in to comment.