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

miaoxing / article / 5837407966

pending completion
5837407966

push

github

semantic-release-bot
chore(release): publish

See CHANGELOG.md for more details.

26 of 74 branches covered (35.14%)

194 of 327 relevant lines covered (59.33%)

5.18 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\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