Test Setup Failed
Pull Request — master (#26)
by guillaume
16:27 queued 10:25
created

format()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 5
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 7
rs 10
1
<?php
2
3
function format(int $total, array $list)
4
{
5
    return [
6
        'draw' => request()->get('draw'),
7
        'recordsTotal' => $total,
8
        'recordsFiltered' => $total,
9
        'data' => $list,
10
    ];
11
}
12