• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daycry / auth / 22527357078

28 Feb 2026 07:22PM UTC coverage: 63.267% (+0.7%) from 62.568%
22527357078

push

github

daycry
Remove PHP 8.1 from PHPUnit CI matrix

Update .github/workflows/phpunit.yml to drop PHP 8.1 from the test matrix. CI will now run PHPUnit only on PHP 8.2 and 8.3, reducing the matrix to current supported versions.

3064 of 4843 relevant lines covered (63.27%)

41.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Controllers/Admin/DashboardController.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of Daycry Auth.
7
 *
8
 * (c) Daycry <daycry9@proton.me>
9
 *
10
 * For the full copyright and license information, please view
11
 * the LICENSE file that was distributed with this source code.
12
 */
13

14
namespace Daycry\Auth\Controllers\Admin;
15

16
use Daycry\Auth\Models\GroupModel;
17
use Daycry\Auth\Models\LoginModel;
18
use Daycry\Auth\Models\PermissionModel;
19
use Daycry\Auth\Models\UserModel;
20

21
/**
22
 * Admin Dashboard — high-level overview of the auth system.
23
 */
24
class DashboardController extends BaseAdminController
25
{
26
    /**
27
     * Show the admin dashboard with aggregate statistics.
28
     */
29
    public function index(): string
×
30
    {
31
        /** @var UserModel $userModel */
32
        $userModel = model(UserModel::class);
×
33

34
        /** @var GroupModel $groupModel */
35
        $groupModel = model(GroupModel::class);
×
36

37
        /** @var PermissionModel $permissionModel */
38
        $permissionModel = model(PermissionModel::class);
×
39

40
        /** @var LoginModel $loginModel */
41
        $loginModel = model(LoginModel::class);
×
42

43
        $totalUsers       = $userModel->countAllResults(false);
×
44
        $activeUsers      = $userModel->where('active', 1)->countAllResults();
×
45
        $totalGroups      = $groupModel->countAllResults(false);
×
46
        $totalPermissions = $permissionModel->countAllResults(false);
×
47

48
        $recentLogins = $loginModel
×
49
            ->orderBy('id', 'DESC')
×
50
            ->limit(15)
×
51
            ->findAll();
×
52

53
        return $this->view('Daycry\\Auth\\Views\\admin\\dashboard', [
×
54
            'totalUsers'       => $totalUsers,
×
55
            'activeUsers'      => $activeUsers,
×
56
            'totalGroups'      => $totalGroups,
×
57
            'totalPermissions' => $totalPermissions,
×
58
            'recentLogins'     => $recentLogins,
×
59
        ]);
×
60
    }
61
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc