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

visavi / rotor / 28556368264

02 Jul 2026 12:01AM UTC coverage: 16.555% (-0.006%) from 16.561%
28556368264

push

github

visavi
Добавлена совместимость 14.1 для сторонних модулей, добавлено уведомление об обновлениях модулей

2 of 16 new or added lines in 3 files covered. (12.5%)

991 of 5986 relevant lines covered (16.56%)

2.44 hits per line

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

0.0
/app/Http/Controllers/Admin/AdminController.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\Http\Controllers\Admin;
6

7
use App\Http\Controllers\Controller;
8
use App\Models\Module;
9
use App\Models\User;
10
use App\Services\GithubService;
11
use Illuminate\View\View;
12

13
class AdminController extends Controller
14
{
15
    /**
16
     * Главная страница
17
     */
18
    public function main(GithubService $github): View
×
19
    {
20
        $existBoss = User::query()
×
21
            ->where('level', User::BOSS)
×
22
            ->count();
×
23

24
        $hasNewVersion = version_compare(ROTOR_VERSION, $github->getLatestVersionClean(), '<');
×
NEW
25
        $modulesUpdates = isAdmin(User::BOSS) ? Module::updatesCount() : 0;
×
26

NEW
27
        return view('admin/index', compact('existBoss', 'hasNewVersion', 'modulesUpdates'));
×
28
    }
29
}
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