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

miaoxing / article / 7011136987

04 Nov 2023 03:34PM UTC coverage: 55.65%. Remained the same
7011136987

push

github

twinh
ci: 替换 `wei/wei` 依赖

20 of 86 branches covered (0.0%)

197 of 354 relevant lines covered (55.65%)

4.38 hits per line

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

0.0
/pages/api/articles/index.php
1
<?php
2

3
use Miaoxing\Article\Resource\ArticleResource;
4
use Miaoxing\Article\Service\ArticleModel;
5
use Miaoxing\Plugin\BasePage;
6

7
return new class () extends BasePage {
8
    protected $controllerAuth = false;
9

10
    public function get($req)
11
    {
12
        $articles = ArticleModel::desc('sort')
×
13
            ->desc('id')
×
14
            ->reqPage()
×
15
            ->whereIf($req['categoryId'], 'categoryId', $req['categoryId'])
×
16
            ->all();
×
17

18
        return $articles->toRet(ArticleResource::class);
×
19
    }
20
};
×
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

© 2025 Coveralls, Inc