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

miaoxing / article / 4394369420

pending completion
4394369420

push

github

twinh
ci: 更新依赖版本

26 of 43 branches covered (60.47%)

137 of 203 relevant lines covered (67.49%)

6.24 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