Skip to content

Commit e11d17b

Browse files
committed
Apply fixes from StyleCI
1 parent 9f18b23 commit e11d17b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/AddStatsToApi.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Flarum\User\User;
1919
use FoF\ForumWidgets\SafeCacheRepositoryAdapter;
2020
use Symfony\Contracts\Translation\TranslatorInterface;
21+
2122
use function FoF\ForumWidgets\Helper\pretty_number_format;
2223

2324
class AddStatsToApi
@@ -36,8 +37,8 @@ public function __invoke(): array
3637

3738
$stats = $this->cache->remember('fof-forum-stats-widget.stats', $interval, function (): array {
3839
return [
39-
'discussion_count' => Discussion::count(),
40-
'user_count' => User::count(),
40+
'discussion_count' => Discussion::count(),
41+
'user_count' => User::count(),
4142
'comment_post_count' => CommentPost::count(),
4243
];
4344
}) ?: [];

tests/integration/setup.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<?php
22

33
/*
4-
* This file is part of Flarum.
4+
* This file is part of fof/forum-stats-widget.
55
*
6-
* For detailed copyright and license information, please view the
7-
* LICENSE file that was distributed with this source code.
6+
* Copyright (c) 2026 FriendsOfFlarum.
7+
*
8+
* For the full copyright and license information, please view the LICENSE.md
9+
* file that was distributed with this source code.
810
*/
911

1012
use Flarum\Testing\integration\Setup\SetupScript;

0 commit comments

Comments
 (0)