Completed
Pull Request — master (#372)
by Mike
31:01 queued 16:07
created

Author   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 7 1
1
<?php namespace GeneaLabs\LaravelModelCaching\Tests\Fixtures\Http\Resources;
2
3
use Illuminate\Http\Resources\Json\JsonResource;
4
5
class Author extends JsonResource
6
{
7
    public function toArray($request)
8
    {
9
        return [
10
            'name' => $this->name,
11
            'books' => $this->books,
12
        ];
13
    }
14
}
15