Skip to content

Commit cecbf3c

Browse files
committed
Apply fixes from StyleCI
1 parent 200f1df commit cecbf3c

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

src/Api/Resource/ModeratorNoteResource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public function fields(): array
8080
})
8181
->get(function (ModeratorNote $note, Context $context) {
8282
$formatter = ModeratorNote::getFormatter();
83+
8384
return $formatter->render($note->note);
8485
}),
8586

src/Model/ModeratorNote.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ public function addedByUser()
4848
* Scope a query to only include notes visible to a user.
4949
*
5050
* @param \Illuminate\Database\Eloquent\Builder $query
51-
* @param User $actor
51+
* @param User $actor
52+
*
5253
* @return \Illuminate\Database\Eloquent\Builder
5354
*/
5455
public function scopeWhereVisibleTo($query, User $actor)

tests/integration/api/CreateNotesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
use Flarum\Group\Group;
1717
use Flarum\Testing\integration\RetrievesAuthorizedUsers;
1818
use Flarum\Testing\integration\TestCase;
19-
use PHPUnit\Framework\Attributes\Test;
2019
use Flarum\User\User;
2120
use FoF\ModeratorNotes\Model\ModeratorNote;
21+
use PHPUnit\Framework\Attributes\Test;
2222

2323
class CreateNotesTest extends TestCase
2424
{

tests/integration/api/DeleteNotesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
use Flarum\Group\Group;
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 DeleteNotesTest extends TestCase
2222
{

tests/integration/api/ShowNotesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function setUp(): void
4949
public static function unauthorizedUserProvider(): array
5050
{
5151
return [
52-
'guest' => [null],
52+
'guest' => [null],
5353
'normal user' => [4],
5454
];
5555
}
@@ -70,7 +70,7 @@ public function unauthorized_users_cannot_show_note(?int $authenticatedAs)
7070
public static function authorizedUserProvider(): array
7171
{
7272
return [
73-
'admin' => [1],
73+
'admin' => [1],
7474
'moderator' => [3],
7575
];
7676
}

tests/integration/api/UserAttributesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
use Flarum\Group\Group;
1616
use Flarum\Testing\integration\RetrievesAuthorizedUsers;
1717
use Flarum\Testing\integration\TestCase;
18-
use PHPUnit\Framework\Attributes\Test;
1918
use Flarum\User\User;
2019
use FoF\ModeratorNotes\Model\ModeratorNote;
20+
use PHPUnit\Framework\Attributes\Test;
2121

2222
class UserAttributesTest extends TestCase
2323
{

0 commit comments

Comments
 (0)