ListResource   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 12
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 3 1
1
<?php
2
3
4
namespace UserAdmin\Http\Resources;
5
6
use Illuminate\Http\Request;
7
use Illuminate\Http\Resources\Json\JsonResource;
8
9
class ListResource extends JsonResource
10
{
11
    /**
12
     * Transform the resource into an array.
13
     *
14
     * @param Request $request
15
     *
16
     * @return array
17
     */
18 1
    public function toArray($request)
19
    {
20 1
        return $this->resource;
21
    }
22
}
23