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

miaoxing / admin / 10498287510

10 Aug 2024 07:32AM UTC coverage: 24.307%. Remained the same
10498287510

push

github

twinh
style: php-cs-fixer new_with_parentheses

20 of 82 branches covered (24.39%)

4 of 22 new or added lines in 22 files covered. (18.18%)

149 of 613 relevant lines covered (24.31%)

2.81 hits per line

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

0.0
/pages/api/admin/admin-page/index.php
1
<?php
2

3
use Miaoxing\Admin\Service\AdminMenu;
4
use Miaoxing\App\Middleware\CheckPagePermission;
5
use Miaoxing\Plugin\BasePage;
6

NEW
7
return new class extends BasePage {
×
8
    public function init()
9
    {
10
        parent::init();
×
11
        $this->removeMiddleware(CheckPagePermission::class);
×
12
    }
13

14
    public function get()
15
    {
16
        return suc([
×
17
            'data' => [
×
18
                'menus' => AdminMenu::getMenusByUser(),
×
19
                'title' => '喵星商城',
×
20
            ],
×
21
        ]);
×
22
    }
23
};
×
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