Passed
Branch master (fa2e2c)
by Chubarov
15:40 queued 12:39
created

ReportsCollection::toArray()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
eloc 2
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 2
    public function toArray($request)
20
    {
21
        // TODO add reports merge with database info
22 2
        return parent::toArray($request);
23
    }
24
}