ReportsCollection::toArray()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 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
}