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

miaoxing / article / 5205157479

pending completion
5205157479

push

github

twinh
ci: 更新 `miaoxing/plugin` 为 `0.12`

26 of 66 branches covered (39.39%)

141 of 258 relevant lines covered (54.65%)

5.14 hits per line

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

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

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

7
return new class () extends BaseController {
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