baijunyao / laravel-bjyblog

@@ -17,16 +17,8 @@
Loading
17 17
            ->with('tags')
18 18
            ->paginate(10);
19 19
20 -
        if ($articles->isNotEmpty()) {
21 -
            $articles->setCollection(
22 -
                collect(
23 -
                    $articles->items()
24 -
                )->map(function ($v) use ($category) {
25 -
                    $v->category = $category;
26 -
27 -
                    return $v;
28 -
                })
29 -
            );
20 +
        foreach ($articles as $article) {
21 +
            $article->setRelation('category', $category);
30 22
        }
31 23
32 24
        $head = [

@@ -12,7 +12,7 @@
Loading
12 12
    /**
13 13
     * A list of exception types with their corresponding custom log levels.
14 14
     *
15 -
     * @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
15 +
     * @var array<class-string<Throwable>, \Psr\Log\LogLevel::*>
16 16
     */
17 17
    protected $levels = [
18 18
    ];
@@ -20,7 +20,7 @@
Loading
20 20
    /**
21 21
     * A list of the exception types that are not reported.
22 22
     *
23 -
     * @var array<int, class-string<\Throwable>>
23 +
     * @var array<int, class-string<Throwable>>
24 24
     */
25 25
    protected $dontReport = [
26 26
    ];
Files Complexity Coverage
app 455 72.59%
Project Totals (142 files) 455 72.59%
1
comment: false
2
ignore:
3
  - tests/Feature/_baseline
4
coverage:
5
  range: 50..70
6
  round: down
7
  precision: 2
8
  status:
9
    project: off
10
    patch: off
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading