Skip to content

Commit 614df85

Browse files
committed
Apply fixes from StyleCI
1 parent df53586 commit 614df85

File tree

8 files changed

+6
-10
lines changed

8 files changed

+6
-10
lines changed

src/Jobs/SendNotificationWhenFollowerPosted.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SendNotificationWhenFollowerPosted implements ShouldQueue
2626
use Queueable;
2727
use SerializesModels;
2828

29-
protected int|null $lastPostNumber = null;
29+
protected ?int $lastPostNumber = null;
3030

3131
public function __construct(protected Post $post)
3232
{

src/Notifications/NewDiscussionBlueprint.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212

1313
namespace IanM\FollowUsers\Notifications;
1414

15-
use Flarum\Notification\AlertableInterface;
1615
use Flarum\Discussion\Discussion;
16+
use Flarum\Notification\AlertableInterface;
1717
use Flarum\Notification\Blueprint\BlueprintInterface;
1818
use Flarum\Notification\MailableInterface;
1919
use Flarum\Post\Post;
20-
use Symfony\Contracts\Translation\TranslatorInterface;
2120

2221
class NewDiscussionBlueprint implements BlueprintInterface, MailableInterface, AlertableInterface
2322
{

src/Notifications/NewFollowerBlueprint.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Flarum\Notification\Blueprint\BlueprintInterface;
1717
use Flarum\Notification\MailableInterface;
1818
use Flarum\User\User;
19-
use Symfony\Contracts\Translation\TranslatorInterface;
2019

2120
class NewFollowerBlueprint implements BlueprintInterface, MailableInterface, AlertableInterface
2221
{

src/Notifications/NewPostByUserBlueprint.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212

1313
namespace IanM\FollowUsers\Notifications;
1414

15-
use Flarum\Notification\AlertableInterface;
1615
use Flarum\Discussion\Discussion;
16+
use Flarum\Notification\AlertableInterface;
1717
use Flarum\Notification\Blueprint\BlueprintInterface;
1818
use Flarum\Notification\MailableInterface;
1919
use Flarum\Post\Post;
20-
use Symfony\Contracts\Translation\TranslatorInterface;
2120

2221
class NewPostByUserBlueprint implements BlueprintInterface, MailableInterface, AlertableInterface
2322
{

src/Query/FollowedUsersFilter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
use Flarum\Search\SearchState;
1818
use Flarum\User\User;
1919
use Flarum\User\UserRepository;
20-
use Illuminate\Database\Query\Builder;
2120

2221
class FollowedUsersFilter implements FilterInterface
2322
{

tests/integration/api/FollowUserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
use Flarum\Notification\Notification;
1616
use Flarum\Testing\integration\RetrievesAuthorizedUsers;
1717
use Flarum\Testing\integration\TestCase;
18-
use PHPUnit\Framework\Attributes\Test;
1918
use Flarum\User\User;
19+
use PHPUnit\Framework\Attributes\Test;
2020

2121
class FollowUserTest extends TestCase
2222
{

tests/integration/api/FollowingUserTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
use Flarum\Notification\Notification;
1616
use Flarum\Testing\integration\RetrievesAuthorizedUsers;
1717
use Flarum\Testing\integration\TestCase;
18+
use Flarum\User\User;
1819
use PHPUnit\Framework\Attributes\DataProvider;
1920
use PHPUnit\Framework\Attributes\Test;
20-
use Flarum\User\User;
2121

2222
class FollowingUserTest extends TestCase
2323
{

tests/integration/api/ForumRelationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
use Flarum\Testing\integration\RetrievesAuthorizedUsers;
1616
use Flarum\Testing\integration\TestCase;
17-
use PHPUnit\Framework\Attributes\Test;
1817
use Flarum\User\User;
18+
use PHPUnit\Framework\Attributes\Test;
1919

2020
class ForumRelationTest extends TestCase
2121
{

0 commit comments

Comments
 (0)