Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
7 | public function transform($device) |
||
8 | { |
||
9 | return [ |
||
10 | 'id' => $device['id'], |
||
11 | 'ip' => $device['ip'], |
||
12 | 'name' => $device['name'], |
||
13 | 'group' => $device['group'], |
||
14 | 'on_home_page' => $device['public'], |
||
15 | 'device_added' => $device['created_at']->toIso8601String(), |
||
16 | 'last_contact' => $device['updated_at']->toIso8601String(), |
||
17 | ]; |
||
18 | } |
||
19 | } |
||
20 |