ReportsCollection   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A toArray() 0 5 1
1
<?php
2
declare(strict_types=1);
3
namespace agoalofalife\Reports\Http\Resources;
4
5
use Illuminate\Http\Resources\Json\ResourceCollection;
6
7
/**
8
 * Class ReportsCollection
9
 * @package agoalofalife\Reports\Http\Resources
10
 */
11
class ReportsCollection extends ResourceCollection
12
{
13
    /**
14
     * Transform the resource into an array.
15
     *
16
     * @param  \Illuminate\Http\Request
17
     * @return array
18
     */
19 3
    public function toArray($request)
20
    {
21
        // TODO add reports merge with database info
22 3
        return parent::toArray($request);
23
    }
24
}